- All Superinterfaces:
CommonOptions
- All Known Implementing Classes:
EntityOptionsImpl
Global options for the whole entity.
- Author:
- harald
-
Method Summary
Modifier and TypeMethodDescriptionGets the entity this option-set belongs to.Gets the default sorting options.Gets the tracking type.booleanisCached()Returns whether the entity provides a cache.
Only applicable to root entities.booleantrue if [NOPKEY]-option set.booleantrue if [NORMTEXT]-option set.booleanReturns whether the DDL of this entity is maintained by another application.
Provided entities are ignored by the tentackle-sql maven plugin and no SQL-code will be generated at all, neither for create nor any migration.booleanisRemote()Returns whether entity supports remoting.booleanisRoot()true if [ROOT]-option setbooleantrue if [ROOTCLASSID]-option set.booleantrue if [ROOTID]-option set.booleantrue if [TABLESERIAL]-option set.booleantrue if [EDITEDBY]-option set.booleanReturns whether global model defaults should be applied or not.Methods inherited from interface org.tentackle.model.CommonOptions
getAccessScope, getBindOptions, getComment, getStereotypes, isAutoSelect, isBindable, isFromSuper, isLowerCase, isMapNull, isMaxCol, isMute, isNoConstant, isNoDeclare, isNoMethod, isReadOnly, isTrimRead, isTrimWrite, isUpperCase, isWriteOnly, validate
-
Method Details
-
getEntity
Entity getEntity()Gets the entity this option-set belongs to.- Returns:
- the entity
-
noModelDefaults
boolean noModelDefaults()Returns whether global model defaults should be applied or not.- Returns:
- true if ignore model defaults completely
-
getTrackType
TrackType getTrackType()Gets the tracking type.- Returns:
- the tracking type
-
isNoPrimaryKey
boolean isNoPrimaryKey()true if [NOPKEY]-option set.- Returns:
- the NoPrimary
-
isTableSerialProvided
boolean isTableSerialProvided()true if [TABLESERIAL]-option set.- Returns:
- true if tableserial column provided
-
isTokenLockProvided
boolean isTokenLockProvided()true if [EDITEDBY]-option set.- Returns:
- truf if editedby token columns provided
-
isNormTextProvided
boolean isNormTextProvided()true if [NORMTEXT]-option set.- Returns:
- true if normtext column provided
-
isRoot
boolean isRoot()true if [ROOT]-option set- Returns:
- true if this is a root entity
-
isRootIdProvided
boolean isRootIdProvided()true if [ROOTID]-option set.- Returns:
- true if rootid column provided
-
isRootClassIdProvided
boolean isRootClassIdProvided()true if [ROOTCLASSID]-option set.- Returns:
- true if rootclassid column provided
-
getSorting
Gets the default sorting options.- Returns:
- the default sorting, null if none
-
isRemote
boolean isRemote()Returns whether entity supports remoting.- Returns:
- true if with remoting, false if only local
-
isProvided
boolean isProvided()Returns whether the DDL of this entity is maintained by another application.
Provided entities are ignored by the tentackle-sql maven plugin and no SQL-code will be generated at all, neither for create nor any migration.- Returns:
- true if provided
-
isCached
boolean isCached()Returns whether the entity provides a cache.
Only applicable to root entities.- Returns:
- true if cached
-