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 |
|
Overview
compareTo(Comparable)
Method name |
Return type |
Available since |
compareTo(Comparable) |
int |
|
Overview
containsKey(Object)
Method name |
Return type |
Available since |
containsKey(Object) |
boolean |
|
Overview
containsValue(Object)
Method name |
Return type |
Available since |
containsValue(Object) |
boolean |
|
Overview
copy
Method name |
Return type |
Available since |
copy |
Entity |
|
Overview
copyFrom(Entity)
Method name |
Return type |
Available since |
copyFrom(Entity) |
void |
|
Overview
entrySet
Method name |
Return type |
Available since |
entrySet |
Set |
|
Overview
equals(Object)
Method name |
Return type |
Available since |
equals(Object) |
boolean |
|
Overview
get(Set)
Method name |
Return type |
Available since |
get(Set) |
Set |
|
Overview
get(Collection)
Method name |
Return type |
Available since |
get(Collection) |
List |
|
Overview
get(String)
Method name |
Return type |
Available since |
get(String) |
Object |
|
Overview
get(Object)
Method name |
Return type |
Available since |
get(Object) |
Object |
|
Overview
get(String, String)
Method name |
Return type |
Available since |
get(String, String) |
Object |
|
Overview
getAttributeNames
Method name |
Return type |
Available since |
getAttributeNames |
Collection |
|
Overview
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 |
|
Overview
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 |
|
Overview
getEntityType
Method name |
Return type |
Available since |
getEntityType |
EntityType |
|
Overview
getGid
Method name |
Return type |
Available since |
getGid |
UUID |
|
Overview
getId
Method name |
Return type |
Available since |
getId |
Object |
|
Overview
getIdentifier
Method name |
Return type |
Available since |
getIdentifier |
Identifier |
|
Overview
getKeyValue
Method name |
Return type |
Available since |
getKeyValue |
KeyValue |
|
Overview
getLastChange
Method name |
Return type |
Available since |
getLastChange |
Date |
|
Overview
getList(String)
Method name |
Return type |
Available since |
getList(String) |
List |
|
Overview
getReleasedBy
Method name |
Return type |
Available since |
getReleasedBy |
User |
|
Overview
getSession
Method name |
Return type |
Available since |
getSession |
Session |
|
Overview
getState
Overview
getValue(String)
Method name |
Return type |
Available since |
getValue(String) |
Object |
|
Overview
getValue(Attribute)
Method name |
Return type |
Available since |
getValue(Attribute) |
Object |
|
Overview
hashCode
Method name |
Return type |
Available since |
hashCode |
int |
|
Overview
isCase(Object)
Method name |
Return type |
Available since |
isCase(Object) |
boolean |
|
Overview
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 |
|
Overview
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 |
|
Overview
isReleased
Method name |
Return type |
Available since |
isReleased |
boolean |
|
Overview
isValid
Method name |
Return type |
Available since |
isValid |
boolean |
|
Overview
keySet
Method name |
Return type |
Available since |
keySet |
Set |
|
Overview
print
Method name |
Return type |
Available since |
print |
void |
|
Overview
put(Object, Object)
Method name |
Return type |
Available since |
put(Object, Object) |
Object |
|
Overview
putAll(Map)
Method name |
Return type |
Available since |
putAll(Map) |
void |
|
Overview
refresh
Method name |
Return type |
Available since |
refresh |
void |
|
Overview
remove(Object)
Method name |
Return type |
Available since |
remove(Object) |
Object |
|
Overview
rollback
Method name |
Return type |
Available since |
rollback |
void |
|
Overview
rollbackWithRelations
Method name |
Return type |
Available since |
rollbackWithRelations |
void |
|
Overview
set(String, Object)
Method name |
Return type |
Available since |
set(String, Object) |
Object |
|
Overview
set(Object, Object)
Method name |
Return type |
Available since |
set(Object, Object) |
Map |
|
Overview
setValue(String, Object)
Method name |
Return type |
Available since |
setValue(String, Object) |
void |
|
Overview
setValue(Attribute, Object)
Method name |
Return type |
Available since |
setValue(Attribute, Object) |
void |
|
Overview
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 |
|
Overview
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 |
Overview
toString
Method name |
Return type |
Available since |
toString |
String |
|
Overview
type
Method name |
Return type |
Available since |
type |
String |
|
Overview
values
Method name |
Return type |
Available since |
values |
Collection |
|
Overview