Interface EntityOptions

All Superinterfaces:
CommonOptions
All Known Implementing Classes:
EntityOptionsImpl

public interface EntityOptions extends CommonOptions
Global options for the whole entity.
Author:
harald
  • 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 [TOKENLOCK]-option set.
      Returns:
      true if token-lock 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

      List<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
    • 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