Package org.cyclos.entities
Class BaseEntity
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.BaseEntity
-
- All Implemented Interfaces:
Cloneable,HasNetwork,ProcessableForDataTranslation,IEntity
- Direct Known Subclasses:
AbstractProductContactField,AbstractProductNotification,AbstractProductProfileField,Address,AdminProductAuthorizationRole,AdQuestion,AdWebShopSetting,AuthorizationLevel,BaseAccountNotificationSettings,BaseStaticContent,BasicUser,Brokering,BulkAction,ChannelConfiguration,ConfigurationGuestProfileField,Contact,CustomFieldPossibleValue,CustomFieldValue,CustomOperationAction,CustomOperationActionParameter,DataTranslation,DRateCreationValueForTransferType,ImportedFile,ImportedFileInfo,ImportedLine,ImportedLineValue,MemberProductCustomOperation,MemberProductCustomWizard,NamedEntity,NotificationSettings,NotificationTypeSettings,Order,OrderProduct,Password,ProductAccessClient,ProductAdField,ProductDashboardAction,ProductManagement,ProductPasswordAction,ProductRecordField,ProductRecordType,ProductTokenType,ProductTransferStatusFlow,ProductVoucher,RateParameters,Record,Reference,ScriptStorage,Token,Transaction,TransferTransferStatusFlow,TranslationMessage,UserAccountVisibilitySettings,UserChannel,UserDashboardAction,Voucher,VoucherPack
@MappedSuperclass public abstract class BaseEntity extends NetworkedEntity
Base class for most entities. Besides having the generated id (inherited fromSimpleEntity), this class has also a version (used for optimistic locking) and has a definingNetworkTo enable log for an entity you must register anEntityLogHandler.- See Also:
BaseEntityLogHandlerImpl
-
-
Constructor Summary
Constructors Constructor Description BaseEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataTranslationTypegetDataTranslationType()If this entity allows data translation, should return the translation typeIntegergetVersion()-
Methods inherited from class org.cyclos.entities.NetworkedEntity
isGlobal
-
Methods inherited from class org.cyclos.entities.SimpleEntity
clone, equals, getId, hashCode, id, ids, isPersistent, isTransient, setId, toShortString, toString, uniqueIds, uniqueIds
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.entities.HasNetwork
getNetwork
-
-
-
-
Method Detail
-
getDataTranslationType
public DataTranslationType getDataTranslationType()
If this entity allows data translation, should return the translation type- Returns:
-
getVersion
public Integer getVersion()
-
-