@ClassId(value=3) @TableName(value="prefnode") public class DbPreferencesNode extends AbstractDbObject<DbPreferencesNode>
| Modifier and Type | Field and Description |
|---|---|
static String |
CN_NAME
database column name for 'name'.
|
static String |
CN_PARENTID
database column name for 'parentId'.
|
static String |
CN_USER
database column name for 'user'.
|
static String |
TABLENAME
the database tablename.
|
AN_CLASSID, AN_ID, AN_SERIAL, AN_TABLESERIAL, CN_CLASSID, CN_ID, CN_SERIAL, CN_TABLESERIAL, idComparator, nameComparator, nameIdComparator, preparePending, TX_DELETE_LIST, TX_DELETE_MISSING_IN_LIST, TX_DELETE_OBJECT, TX_DUMMY_UPDATE, TX_INSERT_OBJECT, TX_INSERT_PLAIN, TX_SAVE, TX_SAVE_LIST, TX_SYNC, TX_UPDATE_OBJECT, TX_UPDATE_PLAIN, TX_UPDATE_SERIAL, TX_UPDATE_SERIAL_AND_TABLESERIAL, TX_UPDATE_TABLESERIAL| Constructor and Description |
|---|
DbPreferencesNode()
Creates a node (without db).
|
DbPreferencesNode(Db db)
Creates a node.
|
| Modifier and Type | Method and Description |
|---|---|
String |
createInsertSql()
Creates the SQL code for the insert statement.
|
String |
createUpdateSql()
Creates the SQL code for the update statement.
|
String |
getBaseName()
Gets the basename of the node.
|
DbObjectClassVariables<DbPreferencesNode> |
getClassVariables()
Gets the some attributes and variables common to all objects of the same class.
|
void |
getFields(ResultSetWrapper rs)
Retrieves the values of all fields.
|
String |
getName()
Gets the attribute name.
|
long |
getParentId()
Gets the attribute parentId.
|
String |
getUser()
Gets the attribute user.
|
boolean |
isCountingModification(char modType)
Determines whether modifications of this object are counted in the modification table.
Counting is also turned on if the PDO provides a tableserial. |
boolean |
isTableSerialProvided()
Object provides the tableserial.
|
List<DbPreferencesNode> |
selectByParentId(long parentId)
Gets all nodes belonging to a parent node.
|
DbPreferencesNode |
selectByUserAndName(String user,
String name)
Selects a node by user and name.
|
Set<Long> |
selectChildIds()
Selects the object IDs of all childs nodes.
|
int |
setFields(PreparedStatementWrapper st)
Sets the values of all fields (all columns of the database table)
in the given
PreparedStatementWrapper from the object's attributes. |
void |
setName(String name)
Sets the attribute name.
|
void |
setParentId(long parentId)
Sets the attribute parentId.
|
void |
setUser(String user)
Sets the attribute user.
|
String |
toString()
Gets the default string value.
The default implementation invokes AbstractDbObject.toGenericString(). |
acceptPersistenceVisitor, addPropertyChangeListener, addPropertyChangeListener, assertMutable, assertNotNew, assertNotOverloaded, assertNotRemote, assertNumberOfRowsAffected, assertPersistable, assertRemote, assertThisRowAffected, attributesModified, beginTx, clearOnRemoteSave, clone, compareTo, copyToDb, countModification, createDeleteAllSql, createDeleteSql, createDummyUpdateSql, createModificationLog, createPreparedStatement, createPreparedStatement, createSelectAllByIdInnerSql, createSelectAllIdSerialInnerSql, createSelectAllInnerSql, createSelectExpiredTableSerials1Sql, createSelectExpiredTableSerials2Sql, createSelectIdInnerSql, createSelectMaxIdSql, createSelectMaxTableSerialSql, createSelectSerialSql, createSelectSql, createSqlUpdate, createUpdateSerialAndTableSerialSql, createUpdateSerialSql, deleteImpl, deleteObject, deletePlain, deleteReferencedRelations, deleteReferencingRelations, dummyUpdate, equals, finishModification, finishNotUpdated, firePropertyChange, getBackend, getClassBaseName, getClassId, getColumnCount, getExpirationBacklog, getExpiredTableSerials, getId, getIdSource, getImmutableLoggingLevel, getModificationCount, getModificationLog, getPreparedStatement, getPreparedStatement, getPropertyChangeListeners, getPropertyChangeListeners, getRemoteDelegate, getSerial, getSession, getSessionHolder, getTableName, getTableSerial, hashCode, initModification, insertImpl, insertObject, insertPlain, isDeleted, isEntity, isIdValid, isImmutable, isLoggingModification, isModified, isNew, isOverloadable, isPersistable, isReferenced, isRemovable, isSessionImmutable, isStatementAlwaysPrepared, isTracked, isUpdateNecessary, isUpdatingSerialEvenIfNotModified, isVirgin, loadLazyReferences, logModification, markDeleted, newId, newInstance, newInstance, newInstance, persistObject, prepareDelete, prepareSave, prepareSetFields, readFromResultSetWrapper, reloadLockedObject, reloadObject, removeAllPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener, reserveId, resultAllIdSerial, resultAllObjects, revertAttributesToSnapshot, saveObject, saveReferencedRelations, saveReferencingRelations, selectAllIdSerial, selectAllObjects, selectExpiredTableSerials, selectExpiredTableSerials, selectLockedObject, selectMaxId, selectMaxTableSerial, selectNextObject, selectObject, selectSerial, setClassId, setId, setImmutable, setImmutableLoggingLevel, setModificationLog, setModified, setOverloadable, setSerial, setSession, setSessionHolder, setSessionImmutable, setStatementAlwaysPrepared, setTableSerial, toGenericString, toIdString, unmarkDeleted, updateImpl, updateObject, updatePlain, updateSerial, updateSerialAndTableSerialpublic static final String TABLENAME
public static final String CN_USER
public static final String CN_NAME
public static final String CN_PARENTID
public DbPreferencesNode(Db db)
db - the db connectionpublic DbPreferencesNode()
public boolean isCountingModification(char modType)
AbstractDbObjectisCountingModification in class AbstractDbObject<DbPreferencesNode>modType - is one of the modtypes INSERT, UPDATE, DELETE, ...public DbObjectClassVariables<DbPreferencesNode> getClassVariables()
AbstractDbObjectDbObjectClassVariables.getClassVariables in class AbstractDbObject<DbPreferencesNode>public List<DbPreferencesNode> selectByParentId(long parentId)
parentId - the ID of the parent node, 0 = rootnodepublic Set<Long> selectChildIds()
public DbPreferencesNode selectByUserAndName(String user, String name)
user - is the username, null = systemname - is the absolute pathname of the node, ""=rootpublic boolean isTableSerialProvided()
isTableSerialProvided in class AbstractDbObject<DbPreferencesNode>public void getFields(ResultSetWrapper rs)
AbstractDbObjectgetFields in class AbstractDbObject<DbPreferencesNode>rs - the result setpublic int setFields(PreparedStatementWrapper st)
AbstractDbObjectPreparedStatementWrapper from the object's attributes.setFields in class AbstractDbObject<DbPreferencesNode>st - the statementpublic String createInsertSql()
AbstractDbObjectcreateInsertSql in class AbstractDbObject<DbPreferencesNode>public String createUpdateSql()
AbstractDbObjectcreateUpdateSql in class AbstractDbObject<DbPreferencesNode>public String getUser()
public void setUser(String user)
user - name of user, null if systempublic String getName()
public void setName(String name)
name - name of the nodepublic long getParentId()
public void setParentId(long parentId)
parentId - ID of parent node, 0 if rootnodepublic String getBaseName()
public String toString()
AbstractDbObjectAbstractDbObject.toGenericString().toString in class AbstractDbObject<DbPreferencesNode>Copyright © 2016 Krake Softwaretechnik. All rights reserved.