|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.core.dataobjects.BaseDataObject
com.jcorporate.expresso.core.dataobjects.jdbc.JDBCDataObject
com.jcorporate.expresso.core.dbobj.DBObject
com.jcorporate.expresso.core.dbobj.SecuredDBObject
com.jcorporate.expresso.ext.xml.dbobj.UserAgent
Entries here define the other VM's (even on other servers) that are also using this database, and with whom cache synchronizations should be attempted. Note that for this to work, the db/context names on the remote servers must be the same as the db/context names here.
| Nested Class Summary |
| Nested classes inherited from class com.jcorporate.expresso.core.dbobj.DBObject |
DBObject.FieldError, DBObject.FieldUpdate |
| Field Summary | |
protected static org.apache.oro.text.regex.PatternCompiler |
compiler
Used for regular expression compilation |
protected static org.apache.oro.text.regex.PatternMatcher |
matcher
Used to match compiled patterns against strings |
protected static Map |
regExpCache
Used to hold compiled regular expressions in an attempt to speed up pattern matching. |
| Fields inherited from class com.jcorporate.expresso.core.dbobj.SecuredDBObject |
ADD, ALL_FUNCTIONS, CACHE_NAME, CACHE_TTY, DELETE, SEARCH, SYSTEM_ACCOUNT, SYSTEM_ACCOUNT_NAME, UPDATE |
| Fields inherited from class com.jcorporate.expresso.core.dbobj.DBObject |
ATTRIBUTE_ERROR, ATTRIBUTE_ERROR_MESSAGE, ATTRIBUTE_PAGE_LIMIT, BIG_DECIMAL_ZERO, EMAIL_MASK, EVENT_ADD, EVENT_DELETE, EVENT_UPDATE, FLOAT_MASK, INT_MASK, IS_CHECK_RELATIONAL_INTEGRITY, UPDATE_CHANGED_ONLY, WHERE_KEYWORD |
| Fields inherited from class com.jcorporate.expresso.core.dataobjects.jdbc.JDBCDataObject |
anyFieldsDistinct, anyFieldsToRetrieve, appendCustomWhere, caseSensitiveQuery, customWhereClause, dbKey, distinctFields, localConnection, LONGBINARY_READ_DEFAULT_SIZE, maxRecords, myClassName, myUpdates, offsetRecord, recordSet, retrieveFields, sMetadataMap, sortKeys |
| Fields inherited from class com.jcorporate.expresso.core.dataobjects.BaseDataObject |
currentStatus, globalMask |
| Fields inherited from interface com.jcorporate.expresso.core.dataobjects.DataObject |
STATUS_CURRENT, STATUS_DELETED, STATUS_NEW, STATUS_UPDATED |
| Constructor Summary | |
UserAgent()
Constructor |
|
UserAgent(int uid)
Constructor that sets the 'owner' of this DBObject class. |
|
| Method Summary | |
boolean |
getMatch(String userAgentString)
Figure out which UserAgent entry this User-Agent string from the browser should match & set this db object to the appropriate object. |
DBObject |
getThisDBObj()
Standard method to return a new UserAgent object |
Vector |
getValidValues(String fieldName)
Override the method getValues to provide specific values for our multi-valued fields |
Vector |
getValues()
Method to return a Vector of ValidValue Template method--not implemented in this superclass. |
void |
populateDefaultValues()
populateDefaultValues is called by the schema object to allow a table to populate itself with any desired values. |
void |
setupFields()
Define the table and fields for this object |
| Methods inherited from class com.jcorporate.expresso.core.dbobj.SecuredDBObject |
add, canRequesterAdd, canRequesterDelete, canRequesterRead, canRequesterUpdate, checkAllowed, copyAttributes, count, createSecurityCache, delete, deleteAll, find, getRequestingUid, getString, getString, getString, getString, getString, getString, getSystemUid, instantiate, isAllowed, retrieve, search, searchAndRetrieveList, searchAndRetrieveList, setRequestingUid, update |
| Methods inherited from class com.jcorporate.expresso.core.dataobjects.BaseDataObject |
getGlobalMask, getStatus, isGlobalMasked, setFieldsWithDefaults, setGlobalMask, setStatus |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static Map regExpCache
protected static org.apache.oro.text.regex.PatternCompiler compiler
protected static org.apache.oro.text.regex.PatternMatcher matcher
| Constructor Detail |
public UserAgent()
throws DBException
public UserAgent(int uid)
throws DBException
uid - The User's uid
DBException - upon construction error| Method Detail |
public Vector getValues()
throws DBException
DBObject
getValues in interface LookupInterfacegetValues in class DBObjectDBException - upon error.DBObject.getValidValues(java.lang.String)
public boolean getMatch(String userAgentString)
throws DBException
userAgentString - the string of the user agent to match against
DBException - upon database communication error
public DBObject getThisDBObj()
throws DBException
getThisDBObj in class DBObjectDBException - If the new object cannot be createdDBObject.getThisDBObj()
public Vector getValidValues(String fieldName)
throws DBException
getValidValues in class DBObjectfieldName - Fielname to retrieve values for
DBException - If the values cannot be retrieved
public void setupFields()
throws DBException
setupFields in class DBObjectDBException - If the fields cannot be set up
public void populateDefaultValues()
throws DBException
DBObjectThe base class implementation does nothing. Override this method in derived classes to achieve your custom behavior.
The calling routine, DBTool.populateTables(), will set dbName on each object, so you can get it from getDataContext(), and you can assume that the user for the population action is Admin.
populateDefaultValues in class DBObjectDBException - Upon add error, never if it isn't overridden.
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||