Package com.jalios.jstore
Interface Storable
- All Known Implementing Classes:
AbstractCalendarEvent,AbstractChooser,AbstractDBFaq,AbstractDBGlossary,AbstractDBTestType,AbstractEventResource,AbstractJPortal,AbstractMedia,AbstractPortalJspCollection,AbstractShortcut,AbstractTestType,AbstractWebPage,AccessControlList,AccessToken,ACLChooser,Alert,AuthenticationCookie,BackgroundProcessInfo,BasicStorable,Category,CategoryRight,Content,CountryChooser,CountryData,CountryData,Data,DataRight,DBFileDocument,DBMember,FileDocument,FileProcessingInfo,FileProcessingLog,Form,Group,JPortalStructure,LanguageChooser,LanguageData,LoginEvent,MailMessage,MediaProgression,Member,MemberDeleteRequest,MemberPreference,Notification,NotificationCriteria,Portal,PortalElement,PortalRedirect,Portlet,PortletCollection,PortletParent,PortletSkinable,Publication,PublicationFollower,PublicDownload,PublicLink,ReaderTracker,Recommendation,StrongLock,TrackerInfo,TranstypedId,TranstypedType,UITheme,UIThemeSkin,UserContent,Vote,WFNote,WKRole,Workspace,WSTypeEntry
public interface Storable
The interface an object must implement to be managed in the Store.
- Author:
- Olivier Dedieu
-
Method Summary
Modifier and TypeMethodDescriptionclone()getAttribute(Object attribute) Returns a persistent representation of an attribute from its nameStorable attributes gettergetCdate()Get the value of cdate.getDdate()Returns the delete date of this storable.getId()Get the value of id.getMdate()Get the value of mdate.getStore()Get the value of store.voidReset internal caches (like isStoredCache for example)resolveAtt(Object attVal) This method must be called if the type was not resolved by
the getAttribute methodresolveVal(Class<?> classType, String persistentValue) This method must be called if the type was not resolved by the getValue methodvoidStorable attributes settervoidSet the value of cdate.voidSets the delete date of this storable.voidSet the value of id.voidSet the value of mdate.voidSet the value of store.
-
Method Details
-
setAttributes
Storable attributes setter- Parameters:
sle- the StorableLogEntry that contains the attributes to set:
Key=AttName(String) Value=persistent representation(String)
-
getAttributes
Storable attributes getter- Returns:
- the attributes of the storable with the mapping:
Key=Name(String) Value=persistent representation(String)
-
getAttribute
Returns a persistent representation of an attribute from its name- Parameters:
attribute- he attribute- Returns:
- the persistent representation of the attribute
-
resolveAtt
This method must be called if the type was not resolved by
the getAttribute method- Parameters:
attVal- the value of the attribute- Returns:
- the persistent representation of the attribute
-
resolveVal
This method must be called if the type was not resolved by the getValue method- Parameters:
classType- the class typepersistentValue- the persistent value- Returns:
- the object from its class type and persistent value
-
clone
Object clone() -
getId
String getId()Get the value of id.- Returns:
- Value of id.
-
setId
Set the value of id.- Parameters:
v- Value to assign to id.
-
getStore
Store getStore()Get the value of store.- Returns:
- Value of store.
-
setStore
Set the value of store.- Parameters:
v- Value to assign to store.
-
getCdate
Date getCdate()Get the value of cdate.- Returns:
- Value of cdate.
-
setCdate
Set the value of cdate.- Parameters:
v- Value to assign to cdate.
-
getMdate
Date getMdate()Get the value of mdate.- Returns:
- Value of mdate.
-
setMdate
Set the value of mdate.- Parameters:
v- Value to assign to mdate.
-
getDdate
Date getDdate()Returns the delete date of this storable.- Returns:
- the delete date of this storable.
- Since:
- jcms-5.5.0
-
setDdate
Sets the delete date of this storable.- Parameters:
ddate-- Since:
- jcms-5.5.0
-
resetInternalCaches
void resetInternalCaches()Reset internal caches (like isStoredCache for example)
-