RE: What is the significance (use ) of ddmstoragelink in liferay ?

Satyam Mehta, modified 5 Years ago. New Member Posts: 2 Join Date: 5/8/20 Recent Posts

i know ddmstoragelink is used to do crud opration but i really want to know what is the use of ddmstoragelink . What we can achive through it in frontend . i know we are creating services but why we are createing to do crud oprations?

thumbnail
Olaf Kock, modified 5 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts

If you're asking about the table (as this question also came up on slack): Check if you find it in the ER diagram linked from this article. It will tell you everything you need to know about the table.

The question sounds like you're poking around and try to understand what you find, rather than trying to solve a real problem. If you come across an implementation detail, I'd recommend not to waste any brain power on it.

Satyam Mehta, modified 5 Years ago. New Member Posts: 2 Join Date: 5/8/20 Recent Posts

Hi Olaf ,  thanks for the reply 
 sorry that it sounded like that but i have no intension to change  the database .
our team just want to know  the whole theory about the DDMStorageLink .  like for example JournalArticle is webcontent in frontend.
What is the role of DmmStorageLink table . What it store . how it is effecting liferay  workflow . What if we doesnt have DDMStorageLink in our databse . yes we want to know answers to these tyes of question because there is no theory or any documentation from liferay and internet is not helping us in this case . 

thumbnail
Olaf Kock, modified 5 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts

History has shown that people tend to change the database if they assume they understand it. Save yourself from that hassle. Liferay has internal structures and exposes their API - don't look at the persistence out of interest. Rather invest valuable brain cycles into understanding what's actually usable.

What is the role of XXX table? Simple: It stores data. That's the amount of knowledge required.

What happens if table XXX is not there? Some persistence will fail and you'll have a broken installation. Again: That's what you need to know

What happens if you cause any of expected tables OR RECORDS to not be there? Or to be there though not expected? Or to have different data than expected? Your installation will be broken.

Want a fast path to a broken system? Mess with the database! The first step there is trying to understand how a particular entity is stored. The storage is not guaranteed to be stable, and it's not documented as there's no assumption that it doesn't change with the next minor release. Any such change might break your system even if you happened to understand today's use of those tables correctly and completely. Which you probably won't.