com.elasticpath.domain.impl
Class AbstractPersistenceImpl

java.lang.Object
  extended by com.elasticpath.domain.impl.AbstractEpDomainImpl
      extended by com.elasticpath.domain.impl.AbstractPersistenceImpl
All Implemented Interfaces:
EpDomain, Persistence, java.io.Serializable
Direct Known Subclasses:
AbstractEntityImpl, AbstractSearchCriteriaImpl, AbstractValueObjectImpl, AppliedRuleImpl, DigitalAssetAuditImpl, OrderNumberGeneratorImpl, SfSearchLogImpl, SkuOptionValueImpl

public abstract class AbstractPersistenceImpl
extends AbstractEpDomainImpl
implements Persistence

The default implementation of Persistence.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
          Serial version id.
 
Constructor Summary
AbstractPersistenceImpl()
           
 
Method Summary
 void executeBeforePersistAction()
          Interceptor to perform tasks before persisting changes.
 long getUidPk()
          Gets the unique identifier for this domain model object.
 boolean isPersistent()
          True if the object has previously been persisted.
 void setDefaultValues()
          Set default values for those fields need default values.
 void setUidPk(long uidPk)
          Sets the unique identifier for this domain model object.
 
Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl
getElasticPath, setElasticPath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 

Field Detail

serialVersionUID

public static final long serialVersionUID
Serial version id.

See Also:
Constant Field Values
Constructor Detail

AbstractPersistenceImpl

public AbstractPersistenceImpl()
Method Detail

executeBeforePersistAction

public void executeBeforePersistAction()
Interceptor to perform tasks before persisting changes.

Specified by:
executeBeforePersistAction in interface Persistence

getUidPk

public final long getUidPk()
Gets the unique identifier for this domain model object.

Specified by:
getUidPk in interface Persistence
Returns:
the unique identifier.

isPersistent

public boolean isPersistent()
True if the object has previously been persisted.

Specified by:
isPersistent in interface Persistence
Returns:
true if the object has previously been persisted.

setDefaultValues

public void setDefaultValues()
Set default values for those fields need default values.

Specified by:
setDefaultValues in interface Persistence

setUidPk

public final void setUidPk(long uidPk)
Sets the unique identifier for this domain model object.

Specified by:
setUidPk in interface Persistence
Parameters:
uidPk - the new unique identifier.