|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengts.dbtools.DBRecord<SystemProps> org.opengts.db.tables.SystemProps
public class SystemProps
Nested Class Summary | |
---|---|
static class |
SystemProps.Key
|
Nested classes/interfaces inherited from class org.opengts.dbtools.DBRecord |
---|
DBRecord.DBChangeListener |
Field Summary | |
---|---|
static java.lang.String |
DMTP_VERSION
|
static java.lang.String |
FLD_dataType
|
static java.lang.String |
FLD_propertyID
|
static java.lang.String |
FLD_value
|
static java.lang.String |
GTS_VERSION
|
static java.lang.String[] |
READ_ONLY_PROPS
|
static java.lang.String |
TYPE_DOUBLE
|
static java.lang.String |
TYPE_ENUM_
|
static java.lang.String |
TYPE_INTEGER
|
static java.lang.String |
TYPE_LONG
|
static java.lang.String |
TYPE_STRING
|
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 | |
---|---|
SystemProps()
|
|
SystemProps(SystemProps.Key key)
|
Method Summary | |
---|---|
static SystemProps |
createNewProperty(java.lang.String propID,
java.lang.String type,
java.lang.String desc)
Creates/Saves a new SystemProps key |
java.lang.String |
getDataType()
|
static java.lang.String |
getDMTPVersion()
|
static java.lang.String |
getDMTPVersion(java.lang.String dft)
|
double |
getDoubleValue(double dft)
Gets the property value as a Double |
static double |
getDoubleValue(java.lang.String propID,
double dft)
|
static DBFactory<SystemProps> |
getFactory()
|
float |
getFloatValue(float dft)
Gets the property value as a Float |
static float |
getFloatValue(java.lang.String propID,
float dft)
|
static java.lang.String |
getGTSVersion()
|
static java.lang.String |
getGTSVersion(java.lang.String dft)
|
int |
getIntValue(int dft)
Gets the property value as an Integer |
static int |
getIntValue(java.lang.String propID,
int dft)
|
long |
getLongValue(long dft)
Gets the property value as a Long |
static long |
getLongValue(java.lang.String propID,
long dft)
|
static SystemProps |
getProperty(java.lang.String propKey)
Returns the record instance for the specified property key |
static SystemProps |
getProperty(java.lang.String propID,
boolean create)
Gets/Creates the SystemProps instance for specified property key |
java.lang.String |
getPropertyID()
|
static RTProperties |
getRTProperties()
Return an RTProperties instance of the properties in the SystemProps table |
java.lang.String |
getStringValue()
Gets the property String value |
static java.lang.String |
getStringValue(java.lang.String propID,
java.lang.String dft)
|
static java.lang.String[] |
getSystemPropsKeyArray()
Returns an array of SystemProps keys |
static java.util.Collection<java.lang.String> |
getSystemPropsKeyList()
Return list of SystemProps keys |
static java.lang.String |
getTableDescription(java.util.Locale loc)
|
java.lang.String |
getValue()
|
static boolean |
hasProperty(java.lang.String propID)
Returns true if the specified property key exists |
boolean |
isReadOnly()
Returns true if this propertyID is in the "Read-Only" list |
static boolean |
IsReadOnlyProperty(java.lang.String propID)
|
static void |
main(java.lang.String[] argv)
|
void |
setCreationDefaultValues()
Override to set default values |
void |
setDataType(java.lang.String v)
|
void |
setDoubleValue(double v)
Sets the property value as a Double |
static boolean |
setDoubleValue(java.lang.String propID,
double v)
|
void |
setFloatValue(float v)
Sets the property value as a Float |
static boolean |
setFloatValue(java.lang.String propID,
float v)
|
void |
setIntValue(int v)
Sets the property value as an Integer |
static boolean |
setIntValue(java.lang.String propID,
int v)
|
void |
setLongValue(long v)
Sets the property value as a Long |
static boolean |
setLongValue(java.lang.String propID,
long v)
|
static boolean |
setProperty(java.lang.String propID,
java.lang.String value)
Sets the String value for specified property ID, creating the property-ID if it does not already exist. |
void |
setStringValue(java.lang.String v)
Sets the property String value |
static boolean |
setStringValue(java.lang.String propID,
java.lang.String value)
|
void |
setValue(java.lang.String v)
|
static java.lang.String |
TABLE_NAME()
|
static java.lang.String |
TYPE_ENUM(java.lang.String[] E)
|
static void |
updateVersions()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String GTS_VERSION
public static final java.lang.String DMTP_VERSION
public static final java.lang.String[] READ_ONLY_PROPS
public static final java.lang.String TYPE_STRING
public static final java.lang.String TYPE_INTEGER
public static final java.lang.String TYPE_LONG
public static final java.lang.String TYPE_DOUBLE
public static final java.lang.String TYPE_ENUM_
public static final java.lang.String FLD_propertyID
public static final java.lang.String FLD_dataType
public static final java.lang.String FLD_value
Constructor Detail |
---|
public SystemProps()
public SystemProps(SystemProps.Key key)
Method Detail |
---|
public static boolean IsReadOnlyProperty(java.lang.String propID)
public static final java.lang.String TYPE_ENUM(java.lang.String[] E)
public static java.lang.String TABLE_NAME()
public static DBFactory<SystemProps> getFactory()
public static java.lang.String getTableDescription(java.util.Locale loc)
public java.lang.String getPropertyID()
public java.lang.String getDataType()
public void setDataType(java.lang.String v)
public java.lang.String getValue()
public void setValue(java.lang.String v)
public void setCreationDefaultValues()
DBRecord
setCreationDefaultValues
in class DBRecord<SystemProps>
public boolean isReadOnly()
public java.lang.String getStringValue()
public int getIntValue(int dft)
public long getLongValue(long dft)
public float getFloatValue(float dft)
public double getDoubleValue(double dft)
public void setStringValue(java.lang.String v)
public void setIntValue(int v)
public void setLongValue(long v)
public void setFloatValue(float v)
public void setDoubleValue(double v)
public static java.lang.String[] getSystemPropsKeyArray() throws DBException
DBException
public static java.util.Collection<java.lang.String> getSystemPropsKeyList() throws DBException
DBException
public static RTProperties getRTProperties() throws DBException
DBException
public static boolean hasProperty(java.lang.String propID) throws DBException
DBException
public static SystemProps getProperty(java.lang.String propKey) throws DBException
DBException
public static SystemProps getProperty(java.lang.String propID, boolean create) throws DBException
propID
- The property keycreate
- True to create new propID
entry, false to read existing.
DBException
- if create
specified and propID
already
exists, or if create
not specified and propID
not found.public static SystemProps createNewProperty(java.lang.String propID, java.lang.String type, java.lang.String desc) throws DBException
propID
- The property keytype
- The property data type (defaults to "String" is blank)desc
- The property description (defaults to propID
if blank)
DBException
- If propID
already exists, or unable to create new keypublic static boolean setProperty(java.lang.String propID, java.lang.String value)
public static java.lang.String getStringValue(java.lang.String propID, java.lang.String dft)
public static int getIntValue(java.lang.String propID, int dft)
public static long getLongValue(java.lang.String propID, long dft)
public static float getFloatValue(java.lang.String propID, float dft)
public static double getDoubleValue(java.lang.String propID, double dft)
public static boolean setStringValue(java.lang.String propID, java.lang.String value)
public static boolean setIntValue(java.lang.String propID, int v)
public static boolean setLongValue(java.lang.String propID, long v)
public static boolean setFloatValue(java.lang.String propID, float v)
public static boolean setDoubleValue(java.lang.String propID, double v)
public static java.lang.String getGTSVersion(java.lang.String dft)
public static java.lang.String getGTSVersion()
public static java.lang.String getDMTPVersion(java.lang.String dft)
public static java.lang.String getDMTPVersion()
public static void updateVersions()
public static void main(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |