org.opengts.extra.tables
Class PointsOfInterest

java.lang.Object
  extended by org.opengts.dbtools.DBRecord<RT>
      extended by org.opengts.db.AccountRecord<PointsOfInterest>
          extended by org.opengts.extra.tables.PointsOfInterest

public class PointsOfInterest
extends AccountRecord<PointsOfInterest>


Nested Class Summary
static class PointsOfInterest.Key
           
static class PointsOfInterest.PoiType
           
 
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 _TABLE_NAME
           
static java.lang.String FLD_iconName
           
static java.lang.String FLD_latitude
           
static java.lang.String FLD_longitude
           
static java.lang.String FLD_poiID
           
static java.lang.String FLD_poiType
           
 
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
PointsOfInterest()
           
PointsOfInterest(PointsOfInterest.Key key)
           
 
Method Summary
static boolean exists(java.lang.String acctID, java.lang.String poiID)
           
static DBFactory<PointsOfInterest> getFactory()
           
 java.lang.String getIconName()
           
 double getLatitude()
           
 double getLongitude()
           
 java.lang.String getPoiID()
           
static PointsOfInterest getPointsOfInterest(Account account, java.lang.String poiID)
           
static PointsOfInterest getPointsOfInterest(Account account, java.lang.String poiID, boolean create)
           
static PointsOfInterest[] getPointsOfInterest(java.lang.String acctID, GeoBounds gb)
           
static java.lang.String[] getPointsOfInterestIDs(DBSelect<PointsOfInterest> dsel)
           
static java.lang.String[] getPointsOfInterestIDsForAccount(java.lang.String acctId)
           
 int getPoiType()
           
static PointsOfInterest.PoiType getPoiType(int poit)
           
static PointsOfInterest.PoiType getPoiType(PointsOfInterest poi)
           
static java.lang.String getTableDescription(java.util.Locale loc)
           
static void main(java.lang.String[] argv)
           
 void setCreationDefaultValues()
          Override to set default values
 void setIconName(java.lang.String v)
           
 void setLatitude(double v)
           
 void setLongitude(double v)
           
 void setPoiID(java.lang.String v)
           
 void setPoiType(int v)
           
static java.lang.String TABLE_NAME()
           
 
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, 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

_TABLE_NAME

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

FLD_poiID

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

FLD_poiType

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

FLD_latitude

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

FLD_longitude

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

FLD_iconName

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

PointsOfInterest

public PointsOfInterest()

PointsOfInterest

public PointsOfInterest(PointsOfInterest.Key key)
Method Detail

getPoiType

public static PointsOfInterest.PoiType getPoiType(PointsOfInterest poi)

getPoiType

public static PointsOfInterest.PoiType getPoiType(int poit)

TABLE_NAME

public static java.lang.String TABLE_NAME()

getFactory

public static DBFactory<PointsOfInterest> getFactory()

getTableDescription

public static java.lang.String getTableDescription(java.util.Locale loc)

getPoiID

public java.lang.String getPoiID()

setPoiID

public void setPoiID(java.lang.String v)

getPoiType

public int getPoiType()

setPoiType

public void setPoiType(int v)

getLatitude

public double getLatitude()

setLatitude

public void setLatitude(double v)

getLongitude

public double getLongitude()

setLongitude

public void setLongitude(double v)

getIconName

public java.lang.String getIconName()

setIconName

public void setIconName(java.lang.String v)

setCreationDefaultValues

public void setCreationDefaultValues()
Description copied from class: DBRecord
Override to set default values

Overrides:
setCreationDefaultValues in class DBRecord<PointsOfInterest>

exists

public static boolean exists(java.lang.String acctID,
                             java.lang.String poiID)
                      throws DBException
Throws:
DBException

getPointsOfInterest

public static PointsOfInterest[] getPointsOfInterest(java.lang.String acctID,
                                                     GeoBounds gb)
                                              throws DBException
Throws:
DBException

getPointsOfInterest

public static PointsOfInterest getPointsOfInterest(Account account,
                                                   java.lang.String poiID)
                                            throws DBException
Throws:
DBException

getPointsOfInterest

public static PointsOfInterest getPointsOfInterest(Account account,
                                                   java.lang.String poiID,
                                                   boolean create)
                                            throws DBException
Throws:
DBException

getPointsOfInterestIDsForAccount

public static java.lang.String[] getPointsOfInterestIDsForAccount(java.lang.String acctId)
                                                           throws DBException
Throws:
DBException

getPointsOfInterestIDs

public static java.lang.String[] getPointsOfInterestIDs(DBSelect<PointsOfInterest> dsel)
                                                 throws DBException
Throws:
DBException

main

public static void main(java.lang.String[] argv)