Package com.avoka.core.entity
Class BaseEntity
java.lang.Object
org.apache.cayenne.PersistentObject
org.apache.cayenne.BaseDataObject
org.apache.cayenne.CayenneDataObject
com.avoka.core.entity.BaseEntity
- All Implemented Interfaces:
IEntity
,Serializable
,org.apache.cayenne.DataObject
,org.apache.cayenne.Persistent
,org.apache.cayenne.Validating
- Direct Known Subclasses:
_ApplicationClientProperty
,_ApplicationConnection
,_ApplicationDelivery
,_ApplicationForm
,_ApplicationPackage
,_ApplicationService
,_Attachment
,_AuditLog
,_AuthenticationProvider
,_AuthProviderParameter
,_Category
,_Client
,_ClientKeystore
,_ClientMetadataValue
,_ClientPortal
,_ClientProperty
,_ClientReconciliationFile
,_ClientRefData
,_ClientRefDataData
,_ClientUser
,_ComposerImportAction
,_ComposerPackageData
,_ComposerPackageQueue
,_DbVersionUpdate
,_DeliveryDetails
,_DeploymentProperty
,_DocumentType
,_EmailQueue
,_EmailQueueData
,_ErrorLog
,_ErrorLogData
,_EventLog
,_EventOutbox
,_FileUpload
,_FileUploadData
,_Folder
,_Form
,_FormCategory
,_FormDesign
,_FormDesignVersion
,_FormDesignVersionInclude
,_FormDesignVersionProperty
,_FormFunction
,_FormGroup
,_FormPortal
,_FormReceiptSequence
,_GroovyServiceLog
,_GroovyServiceLogData
,_Group
,_GroupAgentLock
,_ImportAction
,_ImportActionData
,_ImportActionDetail
,_Job
,_JobAction
,_JobComment
,_JobEventLog
,_JobGroup
,_JobHistory
,_JobProperty
,_JobStatusHistory
,_JobStep
,_Library
,_LibraryResource
,_LibraryResourceData
,_LibraryResourceHistory
,_LibraryShare
,_MetadataListValue
,_MetadataTag
,_Notification
,_PaymentItem
,_PaymentLog
,_Permission
,_Portal
,_PortalPage
,_PortalPageHistory
,_PortalProperty
,_PortalResource
,_PortalResourceHistory
,_PortalUser
,_PrefillParamXpathMap
,_ProcessingStatus
,_Project
,_ProjectFormTag
,_ProjectFormTagData
,_ProjectInclude
,_PromotionLog
,_PropertyPrefillMap
,_PropertyType
,_ReleaseVersion
,_RequestLog
,_RequiredAttachment
,_Role
,_RolePermission
,_ScheduledJobHistory
,_SchemaExtractMap
,_SchemaSeed
,_SecurityManager
,_SecurityManagerLog
,_SecurityManagerLogData
,_SecurityManagerParameter
,_ServerHealthStatusMetric
,_ServerNode
,_ServiceConnection
,_ServiceDefinition
,_ServiceParameter
,_ServiceParameterHistory
,_Submission
,_SubmissionAsyncMsg
,_SubmissionAsyncMsgBody
,_SubmissionAttribute
,_SubmissionComment
,_SubmissionData
,_SubmissionDeliveryCheckpoint
,_SubmissionDeliveryFunc
,_SubmissionExtractData
,_SubmissionExtractJson
,_SubmissionExtractSearch
,_SubmissionGroup
,_SubmissionHistory
,_SubmissionHistoryData
,_SubmissionMilestone
,_SubmissionProperty
,_SubmissionPropertySearch
,_SubmissionServiceLog
,_SubmissionValidationError
,_SystemHealth
,_TemplateVersion
,_TemplateVersionData
,_TemplateVersionDeployment
,_TPac
,_TPacData
,_TransactionHistory
,_TransactionLookup
,_UserAccount
,_UserAuthEvent
,_UserGroup
,_UserPortalPref
,_UserProfile
,_UserProperty
,_UserRole
,_VersionAttachment
,_VersionMetadataValue
,_VersionPropertyValue
,_XmlInputMap
Provides a base CayenneDataObject for application entity classes to extend.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Note there may be no corresponding id property in the database.Fields inherited from class org.apache.cayenne.CayenneDataObject
values
Fields inherited from class org.apache.cayenne.BaseDataObject
snapshotVersion
Fields inherited from class org.apache.cayenne.PersistentObject
objectContext, objectId, persistenceState
Fields inherited from interface org.apache.cayenne.DataObject
DEFAULT_VERSION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
appendProperties
(StringBuffer buffer) getId()
Return the surrogate primary key of the object.Deprecated.this method appears to not work when the entity is hollow - an empty map is returnedboolean
isNew()
Return true if the object is new or transient object.void
Set the surrogate primary key of the object.toString()
Methods inherited from class org.apache.cayenne.CayenneDataObject
makePath, readPropertyDirectly, readState, setPersistenceState, writePropertyDirectly, writeState
Methods inherited from class org.apache.cayenne.BaseDataObject
addToManyTarget, beforePropertyRead, beforePropertyWrite, getSnapshotVersion, readNestedProperty, readProperty, readSerialized, removeToManyTarget, setObjectContext, setReverseRelationship, setSnapshotVersion, setToManyTarget, setToOneTarget, toStringBuffer, unsetReverseRelationship, validateForDelete, validateForInsert, validateForSave, validateForUpdate, willConnect, writeProperty, writeSerialized
Methods inherited from class org.apache.cayenne.PersistentObject
getMapKey, getObjectContext, getObjectId, getPersistenceState, setObjectId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.cayenne.Persistent
getObjectContext, getObjectId, getPersistenceState, setObjectContext, setObjectId, setPersistenceState
-
Field Details
-
ID_PROPERTY
Note there may be no corresponding id property in the database.- See Also:
-
-
Constructor Details
-
BaseEntity
public BaseEntity()
-
-
Method Details
-
getId
Return the surrogate primary key of the object. -
setId
Set the surrogate primary key of the object. -
isNew
public boolean isNew()Return true if the object is new or transient object. -
getValuesMap
Deprecated.this method appears to not work when the entity is hollow - an empty map is returnedReturn map of object properties values for query by example.- Returns:
- a map of object properties
-
toString
- Overrides:
toString
in classorg.apache.cayenne.BaseDataObject
-
appendProperties
- Overrides:
appendProperties
in classorg.apache.cayenne.CayenneDataObject
-