-
- All Superinterfaces:
CommonOptions
- All Known Implementing Classes:
EntityOptionsImpl
public interface EntityOptions extends CommonOptions
Global options for the whole entity.- Author:
- harald
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EntitygetEntity()Gets the entity this option-set belongs to.java.util.List<java.lang.String>getSorting()Gets the default sorting options.TrackTypegetTrackType()Gets the tracking type.booleanisNoPrimaryKey()true if [NOPKEY]-option set.booleanisNormTextProvided()true if [NORMTEXT]-option set.booleanisRemote()Returns whether entity supports remoting.booleanisRoot()true if [ROOT]-option setbooleanisRootClassIdProvided()true if [ROOTCLASSID]-option set.booleanisRootIdProvided()true if [ROOTID]-option set.booleanisTableSerialProvided()true if [TABLESERIAL]-option set.booleanisTokenLockProvided()true if [EDITEDBY]-option set.booleannoModelDefaults()Returns whether global model defaults should be applied or not.-
Methods inherited from interface org.tentackle.model.CommonOptions
getAccessScope, getBindOptions, getComment, isAutoSelect, isBind, isDerived, isFromSuper, isLowerCase, isMapNull, isMaxCol, isNoConstant, isNoDeclare, isNoMethod, isReadOnly, isSetGet, isTrimRead, isTrimWrite, isUpperCase, isWriteOnly, validate
-
-
-
-
Method Detail
-
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
java.util.List<java.lang.String> 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
-
-