org.opengts.db.tables
Class AccountString
java.lang.Object
org.opengts.dbtools.DBRecord<RT>
org.opengts.db.AccountRecord<AccountString>
org.opengts.db.tables.AccountString
public class AccountString
- extends AccountRecord<AccountString>
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 |
Method Summary |
static AccountString |
createNewAccountString(Account account,
java.lang.String strID)
|
static boolean |
exists(java.lang.String acctID,
java.lang.String strID)
|
static AccountString |
getAccountString(Account account,
java.lang.String strID)
|
static AccountString |
getAccountString(Account account,
java.lang.String strID,
boolean create)
|
static DBFactory<AccountString> |
getFactory()
|
java.lang.String |
getPluralTitle()
|
java.lang.String |
getSingularTitle()
|
java.lang.String |
getStringID()
|
static java.lang.String[] |
getStringsArray(Account account,
java.lang.String strID,
java.lang.String[] dft)
|
static java.lang.String |
getTableDescription(java.util.Locale loc)
|
boolean |
hasPluralTitle()
|
boolean |
hasSingularTitle()
|
static void |
main(java.lang.String[] args)
|
void |
setCreationDefaultValues()
Override to set default values |
void |
setPluralTitle(java.lang.String v)
|
void |
setSingularTitle(java.lang.String v)
|
static java.lang.String |
TABLE_NAME()
|
java.lang.String |
toString()
Returns a String representation of the DBRecordKey for this DBRecord |
static void |
updateAccountString(Account account,
java.lang.String stringID,
java.lang.String description,
java.lang.String singular,
java.lang.String plural)
|
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, 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, 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, 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 |
ID_ACCOUNT
public static final java.lang.String ID_ACCOUNT
- See Also:
- Constant Field Values
ID_USER
public static final java.lang.String ID_USER
- See Also:
- Constant Field Values
ID_DEVICE
public static final java.lang.String ID_DEVICE
- See Also:
- Constant Field Values
ID_DEVICE_NEW_DESCRIPTION
public static final java.lang.String ID_DEVICE_NEW_DESCRIPTION
- See Also:
- Constant Field Values
ID_DEVICE_GROUP
public static final java.lang.String ID_DEVICE_GROUP
- See Also:
- Constant Field Values
ID_ENTITY
public static final java.lang.String ID_ENTITY
- See Also:
- Constant Field Values
ID_PING_DEVICE
public static final java.lang.String ID_PING_DEVICE
- See Also:
- Constant Field Values
ID_ADDRESS
public static final java.lang.String ID_ADDRESS
- See Also:
- Constant Field Values
ID_KEYS
public static final java.lang.String[] ID_KEYS
FLD_stringID
public static final java.lang.String FLD_stringID
- See Also:
- Constant Field Values
FLD_singularTitle
public static final java.lang.String FLD_singularTitle
- See Also:
- Constant Field Values
FLD_pluralTitle
public static final java.lang.String FLD_pluralTitle
- See Also:
- Constant Field Values
AccountString
public AccountString()
AccountString
public AccountString(AccountString.Key key)
TABLE_NAME
public static java.lang.String TABLE_NAME()
getFactory
public static DBFactory<AccountString> getFactory()
getTableDescription
public static java.lang.String getTableDescription(java.util.Locale loc)
getStringID
public java.lang.String getStringID()
getSingularTitle
public java.lang.String getSingularTitle()
hasSingularTitle
public boolean hasSingularTitle()
setSingularTitle
public void setSingularTitle(java.lang.String v)
getPluralTitle
public java.lang.String getPluralTitle()
hasPluralTitle
public boolean hasPluralTitle()
setPluralTitle
public void setPluralTitle(java.lang.String v)
setCreationDefaultValues
public void setCreationDefaultValues()
- Description copied from class:
DBRecord
- Override to set default values
- Overrides:
setCreationDefaultValues
in class DBRecord<AccountString>
toString
public java.lang.String toString()
- Description copied from class:
DBRecord
- Returns a String representation of the DBRecordKey for this DBRecord
- Overrides:
toString
in class DBRecord<AccountString>
- Returns:
- A String representation of the DBRecordKey for this DBRecord
exists
public static boolean exists(java.lang.String acctID,
java.lang.String strID)
throws DBException
- Throws:
DBException
updateAccountString
public static void updateAccountString(Account account,
java.lang.String stringID,
java.lang.String description,
java.lang.String singular,
java.lang.String plural)
throws DBException
- Throws:
DBException
getAccountString
public static AccountString getAccountString(Account account,
java.lang.String strID)
throws DBException
- Throws:
DBException
getStringsArray
public static java.lang.String[] getStringsArray(Account account,
java.lang.String strID,
java.lang.String[] dft)
getAccountString
public static AccountString getAccountString(Account account,
java.lang.String strID,
boolean create)
throws DBException
- Throws:
DBException
createNewAccountString
public static AccountString createNewAccountString(Account account,
java.lang.String strID)
throws DBException
- Throws:
DBException
main
public static void main(java.lang.String[] args)