Package com.avoka.fc.core.entity
Class UserProperty
java.lang.Object
org.apache.cayenne.PersistentObject
org.apache.cayenne.BaseDataObject
org.apache.cayenne.CayenneDataObject
com.avoka.core.entity.BaseEntity
com.avoka.fc.core.entity.auto._UserProperty
com.avoka.fc.core.entity.UserProperty
- All Implemented Interfaces:
IEntity,Auditable,Serializable,org.apache.cayenne.DataObject,org.apache.cayenne.Persistent,org.apache.cayenne.Validating
Provides a property value associated with a specific user.
- See Also:
-
Field Summary
Fields inherited from class com.avoka.fc.core.entity.auto._UserProperty
LABEL, LABEL_PROPERTY, PROFILE, PROFILE_PROPERTY, PROPERTY_TYPE, PROPERTY_TYPE_PROPERTY, SEQUENCE, SEQUENCE_PROPERTY, USER_PROPERTY_OID_PK_COLUMN, VALUE, VALUE_PROPERTYFields inherited from class com.avoka.core.entity.BaseEntity
ID_PROPERTYFields inherited from class org.apache.cayenne.CayenneDataObject
valuesFields inherited from class org.apache.cayenne.BaseDataObject
snapshotVersionFields inherited from class org.apache.cayenne.PersistentObject
objectContext, objectId, persistenceStateFields inherited from interface org.apache.cayenne.DataObject
DEFAULT_VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.- use getValue() instead.Deprecated.there is no longer a distinction between value and base64Value - just use getValue() throughout.booleanbooleanbooleanbooleanbooleanvoidsetBase64Value(String base64Value) Deprecated.- use setValue(String) instead.voidSet the property value.Methods inherited from class com.avoka.fc.core.entity.auto._UserProperty
getLabel, getProfile, getPropertyType, getSequence, getValue, setLabel, setProfile, setPropertyType, setSequenceMethods inherited from class com.avoka.core.entity.BaseEntity
appendProperties, getId, getValuesMap, isNew, setId, toStringMethods inherited from class org.apache.cayenne.CayenneDataObject
makePath, readPropertyDirectly, readState, setPersistenceState, writePropertyDirectly, writeStateMethods inherited from class org.apache.cayenne.BaseDataObject
addToManyTarget, beforePropertyRead, beforePropertyWrite, getSnapshotVersion, readNestedProperty, readProperty, readSerialized, removeToManyTarget, setObjectContext, setReverseRelationship, setSnapshotVersion, setToManyTarget, setToOneTarget, toStringBuffer, unsetReverseRelationship, validateForDelete, validateForInsert, validateForSave, validateForUpdate, willConnect, writeProperty, writeSerializedMethods inherited from class org.apache.cayenne.PersistentObject
getMapKey, getObjectContext, getObjectId, getPersistenceState, setObjectIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.avoka.fc.core.entity.Auditable
getId, getValuesMapMethods inherited from interface org.apache.cayenne.Persistent
getObjectContext, getObjectId, getPersistenceState, setObjectContext, setObjectId, setPersistenceState
-
Constructor Details
-
UserProperty
public UserProperty()
-
-
Method Details
-
setValue
Set the property value. Note that some characters that might cause issues will be replaced ('invalid input: '&'' with "and", '>' and 'invalid input: '<'' with '').- Overrides:
setValuein class_UserProperty- Parameters:
value- the new value
-
getTextValue
Deprecated.there is no longer a distinction between value and base64Value - just use getValue() throughout. This method may be removed in a future TM version.Return the text value, either the underlying long value or the value depending upon the property type.- Returns:
- the text value, either the underlying long value or the value depending upon the property type.
- Since:
- 4.1.3
-
setBase64Value
Deprecated.- use setValue(String) instead. This method may be removed in a future TM version.- Parameters:
base64Value- deprecated
-
getBase64Value
Deprecated.- use getValue() instead. This method may be removed in a future TM version.- Returns:
- deprecated
-
isTypeCSV
public boolean isTypeCSV()- Returns:
- true if the property type is 'CSV'
- Since:
- 5.1.4
-
isTypeLongText
public boolean isTypeLongText()- Returns:
- true if the property type is 'LongText'
- Since:
- 4.1.3
-
isTypeImage
public boolean isTypeImage()- Returns:
- true if the property type is 'Image'
- Since:
- 4.1.3
-
isTypeHTML
public boolean isTypeHTML()- Returns:
- true if the property type is 'HTML'
- Since:
- 4.1.3
-
isTypeJSON
public boolean isTypeJSON()- Returns:
- true if the property type is 'JSON'
- Since:
- 4.1.3
-