public class ExtraColumn<T> extends Column<T>
Column which exists in the dbms but is not defined in the
DSD.Column.LoadException, Column.SettingException| Constructor and Description |
|---|
ExtraColumn(Table<P> table,
String name,
SQLPoemType<T> type,
DefinitionSource definitionSource,
int extrasIndex)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Field<T> |
asField(Persistent g)
Return a Field of the same type as this Column from the Persistent.
|
static <O,P extends Persistent> |
from(Table<P> table,
ColumnInfo columnInfo,
int extrasIndex,
DefinitionSource source)
Static factory.
|
Object |
getCooked(Persistent g)
Retrieves the field value, with locking and access control
for this
Column. |
T |
getRaw_unsafe(Persistent g)
Retrieves the field value, without locking,
for this
Column. |
T |
getRaw(Persistent g)
Retrieves the field value, with locking,
for this
Column. |
void |
setCooked(Persistent g,
Object cooked)
Sets the field value, with locking, access control
and validation for this
Column. |
void |
setRaw_unsafe(Persistent g,
Object raw)
Sets the field value, without locking,
for this
Column. |
void |
setRaw(Persistent g,
Object raw)
Sets the field value, with locking,
for this
Column. |
asEmptyField, cachedSelectionWhereEq, dump, dump, ensure, eqClause, firstFree, firstWhereEq, fullQuotedName, getColumnInfo, getDatabase, getDescription, getDisplayLevel, getDisplayName, getDisplayOrderPriority, getHeight, getIndexed, getIntegrityFix, getName, getRenderInfo, getSearchability, getSortDescending, getSQLType, getTable, getType, getUnique, getUserCreateable, getUserEditable, getWidth, isDeletedColumn, isTroidColumn, quotedName, referencesTo, selectionWhereEq, setDisplayLevel, setIntegrityFix, setRawString, setSearchability, toString, unifyType, unifyWithMetadatapublic ExtraColumn(Table<P> table, String name, SQLPoemType<T> type, DefinitionSource definitionSource, int extrasIndex)
public T getRaw(Persistent g) throws AccessPoemException
Column.getRaw in class Column<T>g - the Persistent to readAccessPoemException - if the current AccessToken
does not confer read access rightsColumn.getRaw(org.melati.poem.Persistent)public T getRaw_unsafe(Persistent g)
Column.getRaw_unsafe in class Column<T>g - the Persistent to readColumn.getRaw_unsafe(org.melati.poem.Persistent)public void setRaw(Persistent g, Object raw) throws AccessPoemException, ValidationPoemException
Column.setRaw in class Column<T>g - the Persistent to modifyraw - the value to set the field toAccessPoemException - if the current AccessToken
does not confer write access rightsValidationPoemException - if the raw value is not validColumn.setRaw(org.melati.poem.Persistent, java.lang.Object)public void setRaw_unsafe(Persistent g, Object raw)
Column.setRaw_unsafe in class Column<T>g - the Persistent to modifyraw - the value to set the field toColumn.setRaw_unsafe(org.melati.poem.Persistent, java.lang.Object)public Object getCooked(Persistent g) throws AccessPoemException, PoemException
Column.getCooked in class Column<T>g - the Persistent to modifyAccessPoemException - if the current AccessToken
does not confer read access rightsPoemException - if any problem occursColumn.getCooked(org.melati.poem.Persistent)public void setCooked(Persistent g, Object cooked) throws AccessPoemException, ValidationPoemException
Column.setCooked in class Column<T>g - the Persistent to modifycooked - the value to setAccessPoemException - if the current AccessToken
does not confer read access rightsValidationPoemException - if the value is not validColumn.setCooked(org.melati.poem.Persistent, java.lang.Object)public Field<T> asField(Persistent g)
asField in class Column<T>g - the PersistentColumn.asField(org.melati.poem.Persistent)public static <O,P extends Persistent> Column<O> from(Table<P> table, ColumnInfo columnInfo, int extrasIndex, DefinitionSource source)
table - columnInfo - extrasIndex - source - Copyright © 2000–2021 PanEris. All rights reserved.