org.opengts.db.tables
Class Driver
java.lang.Object
org.opengts.dbtools.DBRecord<RT>
org.opengts.db.AccountRecord<Driver>
org.opengts.db.tables.Driver
public class Driver
- extends AccountRecord<Driver>
| Fields inherited from class org.opengts.dbtools.DBRecord |
errorDescription, excludedUpdateFields, FLD_creationMillis, FLD_creationTime, FLD_description, FLD_lastUpdateTime, FLD_lastUpdateUser, hasError, ID_SIZE, isValidating, lastSQLException, NOTIFY_GROUP, PSEUDO_FIELD_CHAR |
|
Method Summary |
static Driver |
createNewDriver(Account account,
java.lang.String drvID)
|
static boolean |
exists(java.lang.String acctID,
java.lang.String drvID)
|
java.lang.String |
getAddress()
|
java.lang.String |
getBadgeID()
|
long |
getBirthdate()
|
java.lang.String |
getContactEmail()
|
java.lang.String |
getContactPhone()
|
java.lang.String |
getDeviceID()
|
static Driver |
getDriver(Account account,
java.lang.String drvID)
|
static Driver |
getDriver(Account account,
java.lang.String drvID,
boolean create)
|
java.lang.String |
getDriverID()
|
static OrderedSet<java.lang.String> |
getDriverIDsForAccount(java.lang.String acctId)
|
static OrderedSet<java.lang.String> |
getDriverIDsForAccount(java.lang.String acctId,
long limit)
|
static DBFactory<Driver> |
getFactory()
|
long |
getLicenseExpire()
|
java.lang.String |
getLicenseNumber()
|
java.lang.String |
getLicenseType()
|
static java.lang.String |
getTableDescription(java.util.Locale loc)
|
static void |
main(java.lang.String[] args)
|
void |
setAddress(java.lang.String v)
|
void |
setBadgeID(java.lang.String v)
|
void |
setBirthdate(DayNumber dn)
|
void |
setBirthdate(int year,
int month1,
int day)
|
void |
setBirthdate(long v)
|
void |
setContactEmail(java.lang.String v)
|
void |
setContactPhone(java.lang.String v)
|
void |
setCreationDefaultValues()
Override to set default values |
void |
setDeviceID(java.lang.String v)
|
void |
setDriverID(java.lang.String v)
|
void |
setLicenseExpire(DayNumber dn)
|
void |
setLicenseExpire(int year,
int month,
int day)
|
void |
setLicenseExpire(long v)
|
void |
setLicenseNumber(java.lang.String v)
|
void |
setLicenseType(java.lang.String v)
|
static java.lang.String |
TABLE_NAME()
|
| Methods inherited from class org.opengts.db.AccountRecord |
createSystemAdminAccount, getAccount, getAccountDescription, getAccountID, getDisplayName, getFilteredID, getFilteredID, getIsActive, getNotes, 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, appendFieldValues, clearChanged, clearError, clearExcludedUpdateFields, clearLastCaughtSQLException, equals, excludeFieldFromUpdate, excludeFieldFromUpdate, fireChangeNotification, getCreationDateTime, getCreationMillis, getCreationTime, GetCurrentUser, getDefaultFieldValueKey, getDescription, getErrorDescription, getFactory, getFactory, getField, getFieldBoolean, getFieldDateTime, getFieldDouble, getFieldFloat, getFieldInt, getFieldLong, getFieldName, getFieldString, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getLastCaughtSQLException, getLastUpdateTime, getLastUpdateTime, getLastUpdateUser, getNextGroup, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getRecordCount, getRecordCount, getRecordCount, getRecordCount, getRecordCount, getRecordKey, getRecords, getRecords, getValue, getVirtual, hasChanged, hasError, hasField, hasFieldValue, insert, isLastCaughtSQLExceptionErrorCode, isOkToReload, isOkToSave, isValidating, isVirtual, lock, lockRead, lockWrite, newField_creationMillis, newField_creationTime, newField_creationTime, newField_description, newField_description, newField_lastUpdateTime, 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, SetCurrentUser, setDescription, setError, setError, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setIgnoreInvalidFields, setLastCaughtSQLException, 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 |
_TABLE_NAME
public static final java.lang.String _TABLE_NAME
- See Also:
- Constant Field Values
FLD_driverID
public static final java.lang.String FLD_driverID
- See Also:
- Constant Field Values
FLD_contactPhone
public static final java.lang.String FLD_contactPhone
- See Also:
- Constant Field Values
FLD_contactEmail
public static final java.lang.String FLD_contactEmail
- See Also:
- Constant Field Values
FLD_licenseType
public static final java.lang.String FLD_licenseType
- See Also:
- Constant Field Values
FLD_licenseNumber
public static final java.lang.String FLD_licenseNumber
- See Also:
- Constant Field Values
FLD_licenseExpire
public static final java.lang.String FLD_licenseExpire
- See Also:
- Constant Field Values
FLD_badgeID
public static final java.lang.String FLD_badgeID
- See Also:
- Constant Field Values
FLD_address
public static final java.lang.String FLD_address
- See Also:
- Constant Field Values
FLD_birthdate
public static final java.lang.String FLD_birthdate
- See Also:
- Constant Field Values
FLD_deviceID
public static final java.lang.String FLD_deviceID
- See Also:
- Constant Field Values
Driver
public Driver()
Driver
public Driver(Driver.Key key)
TABLE_NAME
public static java.lang.String TABLE_NAME()
getFactory
public static DBFactory<Driver> getFactory()
getTableDescription
public static java.lang.String getTableDescription(java.util.Locale loc)
getDriverID
public java.lang.String getDriverID()
setDriverID
public void setDriverID(java.lang.String v)
getContactPhone
public java.lang.String getContactPhone()
setContactPhone
public void setContactPhone(java.lang.String v)
getContactEmail
public java.lang.String getContactEmail()
setContactEmail
public void setContactEmail(java.lang.String v)
getLicenseType
public java.lang.String getLicenseType()
setLicenseType
public void setLicenseType(java.lang.String v)
getLicenseNumber
public java.lang.String getLicenseNumber()
setLicenseNumber
public void setLicenseNumber(java.lang.String v)
getLicenseExpire
public long getLicenseExpire()
setLicenseExpire
public void setLicenseExpire(long v)
setLicenseExpire
public void setLicenseExpire(int year,
int month,
int day)
setLicenseExpire
public void setLicenseExpire(DayNumber dn)
getBadgeID
public java.lang.String getBadgeID()
setBadgeID
public void setBadgeID(java.lang.String v)
getAddress
public java.lang.String getAddress()
setAddress
public void setAddress(java.lang.String v)
getBirthdate
public long getBirthdate()
setBirthdate
public void setBirthdate(long v)
setBirthdate
public void setBirthdate(int year,
int month1,
int day)
setBirthdate
public void setBirthdate(DayNumber dn)
getDeviceID
public java.lang.String getDeviceID()
setDeviceID
public void setDeviceID(java.lang.String v)
setCreationDefaultValues
public void setCreationDefaultValues()
- Description copied from class:
DBRecord
- Override to set default values
- Overrides:
setCreationDefaultValues in class DBRecord<Driver>
exists
public static boolean exists(java.lang.String acctID,
java.lang.String drvID)
throws DBException
- Throws:
DBException
getDriver
public static Driver getDriver(Account account,
java.lang.String drvID)
throws DBException
- Throws:
DBException
getDriver
public static Driver getDriver(Account account,
java.lang.String drvID,
boolean create)
throws DBException
- Throws:
DBException
createNewDriver
public static Driver createNewDriver(Account account,
java.lang.String drvID)
throws DBException
- Throws:
DBException
getDriverIDsForAccount
public static OrderedSet<java.lang.String> getDriverIDsForAccount(java.lang.String acctId)
throws DBException
- Throws:
DBException
getDriverIDsForAccount
public static OrderedSet<java.lang.String> getDriverIDsForAccount(java.lang.String acctId,
long limit)
throws DBException
- Throws:
DBException
main
public static void main(java.lang.String[] args)