org.opengts.db
Class HierarchyRecord<RT extends DBRecord>

java.lang.Object
  extended by org.opengts.dbtools.DBRecord<RT>
      extended by org.opengts.db.AccountRecord<RT>
          extended by org.opengts.db.HierarchyRecord<RT>

public abstract class HierarchyRecord<RT extends DBRecord>
extends AccountRecord<RT>


Nested Class Summary
static class HierarchyRecord.HierarchyKey<RT extends DBRecord>
           
 
Nested classes/interfaces inherited from class org.opengts.db.AccountRecord
AccountRecord.AccountKey<RT extends DBRecord>
 
Nested classes/interfaces inherited from class org.opengts.dbtools.DBRecord
DBRecord.DBChangeListener
 
Field Summary
static java.lang.String FLD_hierarchyKey
           
static java.lang.String FLD_level
           
static java.lang.String HIERARCHY_SEPARATOR
           
static char HIERARCHY_SEPARATOR_CHAR
           
static java.lang.String TYPE_HIER_KEY
           
static java.lang.String TYPE_ITEM_ID
           
 
Fields inherited from class org.opengts.db.AccountRecord
FLD_accountID, FLD_displayName, FLD_isActive, FLD_notes
 
Fields inherited from class org.opengts.dbtools.DBRecord
errorDescription, excludedUpdateFields, FLD_creationMillis, FLD_creationTime, FLD_description, FLD_lastUpdateAccount, FLD_lastUpdateTime, FLD_lastUpdateUser, hasError, ID_SIZE, isValidating, lastSQLException, NOTIFY_GROUP, PSEUDO_FIELD_CHAR, tempProps
 
Constructor Summary
HierarchyRecord()
           
HierarchyRecord(HierarchyRecord.HierarchyKey<RT> key)
           
 
Method Summary
 java.lang.String[] getHierarchy()
           
 java.lang.String getHierarchyKey()
           
abstract  java.lang.String getItemID()
           
 int getLevel()
           
protected static DBField newField_hierarchyKey(boolean key)
           
protected static DBField newField_hierarchyKey(boolean key, java.lang.String xAttr)
           
static
<RT extends HierarchyRecord>
TreeNode
readHiearchy(DBFactory<RT> dbFact, Account acct)
           
 void setHierarchy(java.lang.String[] h)
           
 void setHierarchyKey(java.lang.String v)
           
abstract  void setItemID(java.lang.String v)
           
 void setLevel(int v)
           
 
Methods inherited from class org.opengts.db.AccountRecord
createSystemAdminAccount, getAccount, getAccountDescription, getAccountID, getDisplayName, getFilteredID, getFilteredID, getIsActive, getNotes, GetSimpleLocalString, getSystemAdminAccount, getSystemAdminAccountID, hasAccount, hasSystemAdminAccountID, isAccountManager, isActive, isSystemAdmin, isSystemAdmin, isSystemAdminAccountID, isValidID, newField_accountID, newField_accountID, newField_displayName, newField_displayName, newField_isActive, newField_isActive, newField_notes, newField_notes, setAccount, setDisplayName, setIsActive, setNotes, setRuntimeDefaultValues
 
Methods inherited from class org.opengts.dbtools.DBRecord
_getFactory, _reload, addChangedNotification, addExcludedUpdateFields, adjustStringLength_1, adjustStringLength, appendFieldValues, clearChanged, clearError, clearExcludedUpdateFields, clearLastCaughtSQLException, equals, excludeFieldFromUpdate, excludeFieldFromUpdate, fireChangeNotification, geKeyValue, getCreationDateTime, getCreationMillis, getCreationTime, GetCurrentAccount, GetCurrentUser, getDefaultFieldValueKey, getDescription, getErrorDescription, getFactory, getFactory, getField, getFieldBoolean, getFieldDateTime, getFieldDouble, getFieldFloat, getFieldInt, getFieldLong, getFieldName, getFieldString, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getKeyValue, getLastCaughtSQLException, getLastUpdateAccount, getLastUpdateTime, getLastUpdateTime, getLastUpdateUser, getNextGroup, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getRecordCount, getRecordCount, getRecordCount, getRecordCount, getRecordCount, getRecordKey, getRecords, getRecords, getTableDescription, getTemporaryProperties, getValue, getVirtual, hasChanged, hasError, hasField, hasFieldValue, hasOptionalFieldValue, hasTemporaryProperties, insert, isFieldUnsigned, isLastCaughtSQLExceptionErrorCode, isOkToReload, isOkToSave, isValidating, isVirtual, lock, lockRead, lockWrite, newField_creationMillis, newField_creationTime, newField_creationTime, newField_description, newField_description, newField_lastUpdateAccount, newField_lastUpdateAccount, newField_lastUpdateTime, newField_lastUpdateUser, newField_lastUpdateUser, printXML, printXML, printXML, printXML, printXML, printXML, recordDidInsert, recordDidUpdate, recordWillInsert, recordWillUpdate, reload, reload, removeChangedNotification, save, select, select, select, setAllFieldValues, setAllFieldValues, setAllFieldValues, setAllFieldValues, setChanged, setChanged, setCreationDefaultValues, setCreationMillis, setCreationTime, SetCurrentAccount, SetCurrentUser, setDescription, setError, setError, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setIgnoreInvalidFields, setKeyValue, setLastCaughtSQLException, setLastUpdateAccount, setLastUpdateTime, setLastUpdateUser, setOptionalFieldValue, setOptionalFieldValue, setOptionalFieldValue, setOptionalFieldValue, setOptionalFieldValue, setOptionalFieldValue, setOptionalFieldValue, setOptionalFieldValue, setValidating, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setVirtual, toString, toXML, toXML, toXML, toXML, toXML, unlock, update, update, update
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

HIERARCHY_SEPARATOR

public static final java.lang.String HIERARCHY_SEPARATOR
See Also:
Constant Field Values

HIERARCHY_SEPARATOR_CHAR

public static final char HIERARCHY_SEPARATOR_CHAR
See Also:
Constant Field Values

TYPE_HIER_KEY

public static final java.lang.String TYPE_HIER_KEY

TYPE_ITEM_ID

public static final java.lang.String TYPE_ITEM_ID

FLD_hierarchyKey

public static final java.lang.String FLD_hierarchyKey
See Also:
Constant Field Values

FLD_level

public static final java.lang.String FLD_level
See Also:
Constant Field Values
Constructor Detail

HierarchyRecord

public HierarchyRecord()

HierarchyRecord

public HierarchyRecord(HierarchyRecord.HierarchyKey<RT> key)
Method Detail

newField_hierarchyKey

protected static DBField newField_hierarchyKey(boolean key)

newField_hierarchyKey

protected static DBField newField_hierarchyKey(boolean key,
                                               java.lang.String xAttr)

getHierarchyKey

public java.lang.String getHierarchyKey()

setHierarchyKey

public void setHierarchyKey(java.lang.String v)

getHierarchy

public java.lang.String[] getHierarchy()

setHierarchy

public void setHierarchy(java.lang.String[] h)

getLevel

public int getLevel()

setLevel

public void setLevel(int v)

getItemID

public abstract java.lang.String getItemID()

setItemID

public abstract void setItemID(java.lang.String v)

readHiearchy

public static <RT extends HierarchyRecord> TreeNode readHiearchy(DBFactory<RT> dbFact,
                                                                 Account acct)
                             throws DBException
Throws:
DBException