public class ProjectResourceRecord extends PersistentRecord
SRecordInstance.BrokenOptimisticLockException
Modifier and Type | Field and Description |
---|---|
static BlobField |
Data |
static BooleanField |
Deleted
Special deleted bit used to create reliable diffs based on edit counts.
|
static StringField |
Documentation |
static LongField |
Id |
static BooleanField |
IsOEMLocked |
static LongField |
LastEdit |
static RecordMeta<ProjectResourceRecord> |
META |
static StringField |
ModuleId |
static StringField |
ModuleVersion |
static StringField |
Name |
static StringField |
ParentUUID |
static IdentityField |
PkId |
static ReferenceField<ProjectRecord> |
Project |
static LongField |
ProjectId |
static BooleanField |
Protected |
static BooleanField |
Published |
static StringField |
ResourceType |
static IntField |
Scope |
static IntField |
SerializationVersion |
static BooleanField |
Staging |
DEFAULT_VALUE, FORM_META_KEY, INDEXED, UNIQUE
Constructor and Description |
---|
ProjectResourceRecord() |
Modifier and Type | Method and Description |
---|---|
void |
cloneFrom(ProjectResourceRecord publishedRecord) |
void |
deleteRecord()
Deprecated.
|
int |
getApplicationScope() |
byte[] |
getData() |
java.lang.String |
getDocumentation() |
long |
getId() |
java.lang.Long |
getLastEdit() |
RecordMeta<ProjectResourceRecord> |
getMeta()
This must be defined in every user record's definition to access the SRecord which provides the meta data for this
instance.
|
java.lang.String |
getModuleId() |
Version |
getModuleVersion() |
java.lang.String |
getName() |
java.util.UUID |
getParentUUID() |
java.lang.String |
getResourceType() |
int |
getSerializationVersion() |
boolean |
isLocked() |
boolean |
isProtected() |
boolean |
isPublished() |
boolean |
isStaging() |
void |
markDeleted(long editCount)
Overridden to toggle deleted flag instead of truly deleting the record
|
void |
reallyDelete()
Simply calls super.deleteRecord(); Used in the publishing system
|
void |
setAllProps(ProjectResource resource) |
getBoolean, getDoubleObj, getIntObj, getLongObj, getString, installDefaultValues
allFields, assertNewRow, assertNotNewRow, defineInitialValue, doQueryRecord, doValidateRecord, equals, findReference, findReference, findReference, findReference, getBigDecimal, getBytes, getDataSet, getDate, getDouble, getEnum, getInitialValue, getInt, getLogger, getLong, getObject, getRawArrayValue, getReferenceNoQuery, getTime, getTimestamp, hashCode, isAttached, isDeleted, isDirty, isDirty, isEmpty, isNewRow, isNotDestroyed, isNull, isReadOnly, isValid, onQueryRecord, onValidateField, onValidateRecord, setBigDecimal, setBoolean, setBytes, setDate, setDirty, setDouble, setEmpty, setEnum, setInt, setLong, setNewRow, setNull, setObject, setObject, setRawArrayValue, setReadOnly, setReference, setString, setTime, setTimestamp, toString, validatePrimaryKeys, wasInCache
public static final RecordMeta<ProjectResourceRecord> META
public static final IdentityField PkId
public static final LongField Id
public static final LongField ProjectId
public static final ReferenceField<ProjectRecord> Project
public static final StringField Name
public static final StringField Documentation
public static final StringField ModuleId
public static final StringField ModuleVersion
public static final StringField ResourceType
public static final IntField SerializationVersion
public static final IntField Scope
public static final StringField ParentUUID
public static final BlobField Data
public static final BooleanField Protected
public static final LongField LastEdit
public static final BooleanField Deleted
deleteRecord()
override.public static final BooleanField Published
public static final BooleanField Staging
public static final BooleanField IsOEMLocked
public RecordMeta<ProjectResourceRecord> getMeta()
SRecordInstance
SRecord getMeta() { return meta; };
The actual meta
variable is thus not Serialized, but it would not be anyway as it is usually static.
getMeta
in class PersistentRecord
public long getId()
public java.lang.String getName()
public java.lang.String getDocumentation()
public java.lang.Long getLastEdit()
public java.lang.String getModuleId()
public Version getModuleVersion()
public java.lang.String getResourceType()
public int getSerializationVersion()
public int getApplicationScope()
public boolean isProtected()
public java.util.UUID getParentUUID()
public boolean isPublished()
public boolean isStaging()
public boolean isLocked()
public byte[] getData()
public void setAllProps(ProjectResource resource)
public void cloneFrom(ProjectResourceRecord publishedRecord)
@Deprecated public void deleteRecord()
deleteRecord
in class SRecordInstance
public void reallyDelete()
public void markDeleted(long editCount)