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

Field Detail

REVISION

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

setAttributes

void setAttributes(Map<String,String> attributes)
Storable attributes setter

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

getAttributes

Map<String,String> getAttributes()
Storable attributes getter

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

getAttribute

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

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

resolveAtt

String resolveAtt(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

Object resolveVal(Class<?> classType,
                  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

Object clone()

getId

String getId()
Get the value of id.

Returns:
Value of id.

setId

void setId(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

Date getCdate()
Get the value of cdate.

Returns:
Value of cdate.

setCdate

void setCdate(Date v)
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

void setMdate(Date v)
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

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

Parameters:
ddate -
Since:
jcms-5.5.0


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