Start page
Start page

Start page / Template development / Template syntax / Data types / Entity

Entity data typeAvailable from FirstSpirit Version 4.0

Value range of the Entity data type

Data records (content) can be maintained in the tables of the Content Store. These data records can be output and further processed in FirstSpirit. In addition, there are several input components in which one or several data records can be selected.

A data record is represented by the Entity data type. On the one hand the data record includes the individual columns with their values and on the other meta information, e.g. the last editor.

For further information on the Entity data type, see API documentation: de.espirit.firstspirit.access.or.schema.Entity

Methods on Entity objects

The table below lists all methods which can be invoked on objects of data type Entity .

Method name Return type Brief description Available since
clear void
compareTo(Comparable) int
containsKey(Object) boolean
containsValue(Object) boolean
copy Entity
copyFrom(Entity) void
entrySet Set
equals(Object) boolean
get(Set) Set
get(Collection) List
get(String) Object
get(Object) Object
get(String, String) Object
getAttributeNames Collection
getClass Class Class of the invoking object
getEditor User The last user of the content store data
getEntityType EntityType
getGid UUID
getId Object
getIdentifier Identifier
getKeyValue KeyValue
getLastChange Date
getList(String) List
getReleasedBy User
getSession Session
getState Entity$PersistentState
getValue(String) Object
getValue(Attribute) Object
hashCode int
isCase(Object) boolean
isEmpty boolean Checks whether an expression is empty
isNull boolean Checks whether an expression is null (zero)
isReleased boolean
isValid boolean
keySet Set
print void
put(Object, Object) Object
putAll(Map) void
refresh void
remove(Object) Object
rollback void
rollbackWithRelations void
set(String, Object) Object
set(Object, Object) Map
setValue(String, Object) void
setValue(Attribute, Object) void
size int Number of the key/value pair
toJson String Convert to JSON string representtion (only handles Maps, Collections, Arrays, Numbers, and Strings) 4.2.14
toString String
type String
values Collection

clear

Method name Return type Available since
clear void

compareTo(Comparable)

Method name Return type Available since
compareTo(Comparable) int

containsKey(Object)

Method name Return type Available since
containsKey(Object) boolean

containsValue(Object)

Method name Return type Available since
containsValue(Object) boolean

copy

Method name Return type Available since
copy Entity

copyFrom(Entity)

Method name Return type Available since
copyFrom(Entity) void

entrySet

Method name Return type Available since
entrySet Set

equals(Object)

Method name Return type Available since
equals(Object) boolean

get(Set)

Method name Return type Available since
get(Set) Set

get(Collection)

Method name Return type Available since
get(Collection) List

get(String)

Method name Return type Available since
get(String) Object

get(Object)

Method name Return type Available since
get(Object) Object

get(String, String)

Method name Return type Available since
get(String, String) Object

getAttributeNames

Method name Return type Available since
getAttributeNames Collection

getClass

The .getClass() (in Bean syntax: .class) method returns the class of the invoking object (cf. java.lang.Class).

Invocation:

$CMS_VALUE(myString.class)$
$CMS_VALUE(myString.getClass())$

Output:

java.lang.String
Method name Return type Available since
getClass Class

getEditor

The .getEditor() returns the last user of the content store data. The returned User object can be used to output information about the user, e.g. abbreviation, name, etc.

Method name Return type Available since
getEditor User

getEntityType

Method name Return type Available since
getEntityType EntityType

getGid

Method name Return type Available since
getGid UUID

getId

Method name Return type Available since
getId Object

getIdentifier

Method name Return type Available since
getIdentifier Identifier

getKeyValue

Method name Return type Available since
getKeyValue KeyValue

getLastChange

Method name Return type Available since
getLastChange Date

getList(String)

Method name Return type Available since
getList(String) List

getReleasedBy

Method name Return type Available since
getReleasedBy User

getSession

Method name Return type Available since
getSession Session

getState

Method name Return type Available since
getState Entity$PersistentState

getValue(String)

Method name Return type Available since
getValue(String) Object

getValue(Attribute)

Method name Return type Available since
getValue(Attribute) Object

hashCode

Method name Return type Available since
hashCode int

isCase(Object)

Method name Return type Available since
isCase(Object) boolean

isEmpty

The .isEmpty() (in Bean syntax: .isEmpty) method checks whether an expression or object is empty, e.g. storeElement.isEmpty(). The result of the semantic check depends on the expression or object, e.g. a character string is empty if it does not contain any characters. In the case of objects with complex values or objects the object decides when it is empty. The data type DomElement for example always contains an empty document, thus it is never null. For this reason, checking an empty DOM editor input component by using the method .isNull() returns the value false, whereas checking the component with .isEmpty() would return the value true.

The method returns a Boolean value as the check result. true is the check result if the expression or object is empty and false if not.

Method name Return type Available since
isEmpty boolean

isNull

The .isNull() (in Bean syntax: .isNull) method checks whether an expression or object is null , e.g. storeElement.isNull(). In the case of objects with complex values or objects, the object decides when it is null. The data type DomElement for example always contains an empty document, thus it is never null. For this reason, checking an empty DOM editor input component by using the method .isNull() returns the value false, whereas checking the component with .isEmpty() would return the value true.

The method .isNull() returns a Boolean value as the check result. true is the check result if the expression or object is null and false if not.

Method name Return type Available since
isNull boolean

isReleased

Method name Return type Available since
isReleased boolean

isValid

Method name Return type Available since
isValid boolean

keySet

Method name Return type Available since
keySet Set

print

Method name Return type Available since
print void

put(Object, Object)

Method name Return type Available since
put(Object, Object) Object

putAll(Map)

Method name Return type Available since
putAll(Map) void

refresh

Method name Return type Available since
refresh void

remove(Object)

Method name Return type Available since
remove(Object) Object

rollback

Method name Return type Available since
rollback void

rollbackWithRelations

Method name Return type Available since
rollbackWithRelations void

set(String, Object)

Method name Return type Available since
set(String, Object) Object

set(Object, Object)

Method name Return type Available since
set(Object, Object) Map

setValue(String, Object)

Method name Return type Available since
setValue(String, Object) void

setValue(Attribute, Object)

Method name Return type Available since
setValue(Attribute, Object) void

size

The .size() (in Bean syntax: .size) method returns the number of the key/value pair in a map.

The returned object is an integer (see java.lang.Integer).

Method name Return type Available since
size int

toJson

Convert to JSON string representtion (only handles Maps, Collections, Arrays, Numbers, and Strings)
Method name Return type Available since
toJson String 4.2.14

toString

Method name Return type Available since
toString String

type

Method name Return type Available since
type String

values

Method name Return type Available since
values Collection

© 2005 - 2015 e-Spirit AG | All rights reserved. | Last change: 2014-07-21