com.jalios.jstore
Interface Storable

All Known Implementing Classes:
AbstractCalendarEvent, AbstractEventResource, AbstractReview, AbstractTestType, AccessControlList, BasicStorable, Category, CategoryRight, Content, Data, DataExtension, DataRight, DBFileDocument, DBMember, FileDocument, FileProcessingInfo, FileProcessingLog, Form, Group, MailMessage, Member, Notification, NotificationCriteria, Portal, PortalElement, PortalRedirect, Portlet, PortletCollection, PortletParent, PortletSkinable, Publication, PublicationFollower, ReaderTracker, StrongLock, Test, UserContent, WFNote, WKRole, Workspace, WSTypeEntry

public interface Storable

The interface an object must implement to be managed in the Store.

Version:
$Revision: 21412 $
Author:
Olivier Dedieu

Field Summary
static java.lang.String REVISION
           
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String getAttribute(java.lang.Object attribute)
          Returns a persistent representation of an attribute from its name
 java.util.Map<java.lang.String,java.lang.String> getAttributes()
          Storable attributes getter
 java.util.Date getCdate()
          Get the value of cdate.
 java.util.Date getDdate()
          Returns the delete date of this storable.
 java.lang.String getId()
          Get the value of id.
 java.util.Date getMdate()
          Get the value of mdate.
 Store getStore()
          Get the value of store.
 java.lang.String resolveAtt(java.lang.Object attVal)
          This method must be called if the type was not resolved by
the getAttribute method
 java.lang.Object resolveVal(java.lang.Class<?> classType, java.lang.String persistentValue)
          This method must be called if the type was not resolved by the getValue method
 void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
          Storable attributes setter
 void setCdate(java.util.Date v)
          Set the value of cdate.
 void setDdate(java.util.Date ddate)
          Sets the delete date of this storable.
 void setId(java.lang.String v)
          Set the value of id.
 void setMdate(java.util.Date v)
          Set the value of mdate.
 void setStore(Store v)
          Set the value of store.
 

Field Detail

REVISION

static final java.lang.String REVISION
See Also:
Constant Field Values
Method Detail

setAttributes

void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
Storable attributes setter

Parameters:
attributes - the attributes to set:
Key=AttName(String) Value=persistent representation(String)

getAttributes

java.util.Map<java.lang.String,java.lang.String> getAttributes()
Storable attributes getter

Returns:
the attributes of the storable with the mapping:
Key=Name(String) Value=persistent representation(String)

getAttribute

java.lang.String getAttribute(java.lang.Object attribute)
Returns a persistent representation of an attribute from its name

Parameters:
attribute - he attribute
Returns:
the persistent representation of the attribute

resolveAtt

java.lang.String resolveAtt(java.lang.Object attVal)
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

java.lang.Object resolveVal(java.lang.Class<?> classType,
                            java.lang.String persistentValue)
This method must be called if the type was not resolved by the getValue method

Parameters:
classType - the class type
persistentValue - the persistent value
Returns:
the object from its class type and persistent value

clone

java.lang.Object clone()

getId

java.lang.String getId()
Get the value of id.

Returns:
Value of id.

setId

void setId(java.lang.String v)
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

void setStore(Store v)
Set the value of store.

Parameters:
v - Value to assign to store.

getCdate

java.util.Date getCdate()
Get the value of cdate.

Returns:
Value of cdate.

setCdate

void setCdate(java.util.Date v)
Set the value of cdate.

Parameters:
v - Value to assign to cdate.

getMdate

java.util.Date getMdate()
Get the value of mdate.

Returns:
Value of mdate.

setMdate

void setMdate(java.util.Date v)
Set the value of mdate.

Parameters:
v - Value to assign to mdate.

getDdate

java.util.Date getDdate()
Returns the delete date of this storable.

Returns:
the delete date of this storable.
Since:
jcms-5.5.0

setDdate

void setDdate(java.util.Date ddate)
Sets the delete date of this storable.

Parameters:
ddate -
Since:
jcms-5.5.0


Copyright © 2001-2010 Jalios SA. All Rights Reserved.