| com.jcorporate.expresso.core.dbobj.DBObject com.jcorporate.expresso.core.dbobj.SecuredDBObject com.jcorporate.expresso.core.dbobj.RowSecuredDBObject
All known Subclasses: com.jcorporate.expresso.core.dbobj.tests.RowSecuredDBObjectTest1,
RowSecuredDBObject | public class RowSecuredDBObject extends SecuredDBObject (Code) | | subclass this for support of row-level Authorization.
Typically, you construct RowSecuredDBObject passing in userId or the
controller request to set the requesting identity. Or, after construction, call
setRequestingUid() so that user of this DBObject is known. Otherwise,
security checks will always return false (and access methods will throw
SecurityException).
LIMITATION: the primary key for a given row is persisted, along with the
name of the table, to identify the permissions for that row. In other
words, the primary key for permissions is the row's table name plus the
row's primary key: permissionPK = targetTable + targetPrimKey.
Each database vendor (MySQL,
Oracle, etc.) has its own limit for the longest field that can be indexed
as a primary key. If a target row has a very long primary key, the database may
not be able to accommodate the primary key for its permissions. In that
case, a runtime exception is thrown when trying to persist the permissions.
If (length(permissionPK) > MAXIMUM for database) { throw runtime exception}
In most cases, the primary key is an integer or some other short field, so
this limitation is not a problem.
LIMITATION: all permissions are stored in a two tables: RowPermissions & RowGroupPerms.
If your application
has many tables (dbobjects) which all subclass RowSecuredDBObject,
and also has many rows in these tables, you could run into scaling issues
first with permissions. Use RowSecuredDBObject subclasses for only the
important objects. Roll your own security scheme if you expect a very large
database... and tell us how you did it. :-)
author: larry hamel, CodeGuild, Inc. See Also: com.jcorporate.expresso.services.dbobj.RowPermissions See Also: com.jcorporate.expresso.services.dbobj.RowGroupPerms |
Constructor Summary | |
public | RowSecuredDBObject() Constructor without parameters. | public | RowSecuredDBObject(DBConnection theConnection, int theUser) Constructor: Specify a DB connection AND user id.
Parameters: theConnection - A DBConnection that this object should use toconnect to the database Parameters: theUser - User name attempting to use this object. | public | RowSecuredDBObject(int theUser) Creates a new RowSecuredDBObject object.
This constructor will attempt to use servlet filter
to set data context--from expresso v.5.6. | public | RowSecuredDBObject(RequestContext request) Creates a new RowSecuredDBObject object. |
RowSecuredDBObject | public RowSecuredDBObject() throws DBException(Code) | | Constructor without parameters. This constructor will attempt to use servlet filter
to set data context and user ID from expresso v.5.6. However, if you
have not set up this filter in web.xml, be sure to set dbname and user id
after constructing.
throws: DBException - upon database communication error |
RowSecuredDBObject | public RowSecuredDBObject(DBConnection theConnection, int theUser) throws DBException(Code) | | Constructor: Specify a DB connection AND user id.
Parameters: theConnection - A DBConnection that this object should use toconnect to the database Parameters: theUser - User name attempting to use this object. If this is"SYSTEM", then full permissions are granted. Note that youcannot log in as "SYSTEM", it can only be used from within amethod. throws: DBException - If the object cannot be created |
RowSecuredDBObject | public RowSecuredDBObject(int theUser) throws DBException(Code) | | Creates a new RowSecuredDBObject object.
This constructor will attempt to use servlet filter
to set data context--from expresso v.5.6. However, if you
have not set up this filter in web.xml, be sure to set dbname and user id
after constructing.
Parameters: theUser - requesting user throws: DBException - upon database communication error |
RowSecuredDBObject | public RowSecuredDBObject(RequestContext request) throws DBException(Code) | | Creates a new RowSecuredDBObject object.
Parameters: request - context for using this object throws: DBException - upon database communication error |
addGroupPerm | public void addGroupPerm(String group, int perm) throws DBException(Code) | | add permissions for a group; will only ADD permissions, not replace will
add row or update existing row (logical OR of bits) as necessary
Parameters: group - to be added Parameters: perm - to be added throws: DBException - upon database communication error |
canRequesterAdministrate | public boolean canRequesterAdministrate() throws DBException(Code) | | true if requesting id has permission to administrate (changepermissions) throws: DBException - upon database communication error |
canRequesterRead | public boolean canRequesterRead() throws DBException(Code) | | determine if getRequestingUid has rights to read this row
true if getRequestingUid has rights to read this row throws: DBException - upon database communication error |
canRequesterWrite | public boolean canRequesterWrite() throws DBException(Code) | | true if requesting id has permission to write throws: DBException - upon database communication error |
checkDeleteDetailPerm | protected void checkDeleteDetailPerm(DBObject obj) throws DBException(Code) | | check delete privilege for all detail records; different than superclass
because we must set uid
Parameters: obj - Object to be checked for deletion of detail records throws: DBException - upon database communication error |
checkKeyLength | protected void checkKeyLength() throws DBException(Code) | | // warn if key of this row may be too long
throws: DBException - upon error |
defaultGroup | public String defaultGroup() throws DBException(Code) | | the default group for this requesting user; null if user has nogroups throws: DBException - upon database communication error |
defaultPermissions | public int defaultPermissions()(Code) | | override this to change default
the default permissions |
delete | public synchronized void delete(boolean deleteDetails) throws DBException(Code) | | delete row. always delete permission records too
Parameters: deleteDetails - set to true if related details should be deleted also throws: DBException - upon database communication error |
deleteAll | public synchronized void deleteAll() throws DBException(Code) | | check that all objects can be deleted; must retrieve all objects to
check individually
throws: DBException - upon database communication error |
find | public boolean find() throws DBException(Code) | | find object on criteria provided in fields
true if found AND allowed throws: DBException - if user does not have rights to read found item |
getAdministrateGroups | public List getAdministrateGroups() throws DBException(Code) | | list of a group names (strings) which have permission to changepermission throws: DBException - upon database communication error |
getGroups | public List getGroups() throws DBException(Code) | | find any existing permission groups for this object. Typically,
subclasses will call getReadGroups and getWriteGroups instead of this
method
list of RowGroupPerms throws: DBException - upon database communication error |
getPermissions | public RowPermissions getPermissions() throws DBException(Code) | | finds row permissions for the target row of this DBObject. if no row
permissions are already persisted, the returned permissions object will
be constructed and keyed to generating object, but all permissions will
be false
RowPermissions of the current perms throws: DBException - if keys are not set on this object |
getReadGroups | public List getReadGroups() throws DBException(Code) | | list of group names (strings) which have read permission throws: DBException - upon database communication error |
getWriteGroups | public List getWriteGroups() throws DBException(Code) | | list of group names (strings) which have write permission throws: DBException - upon database communication error |
isRowAllowed | public boolean isRowAllowed(String requestedFunction) throws DBException(Code) | | determine if this function is allowed for this requesting user
Parameters: requestedFunction - code for function -- Add, Update, Delete, Search (read) true if this function is allowed for this requesting user throws: SecurityException - (unchecked) if not allowed throws: DBException - for other data-related errors. |
isRowAllowed | public boolean isRowAllowed(String requestedFunction, Collection items) throws DBException(Code) | | iterate through collection, testing each row's privileges remove any row
which does not have privileges; (do not throw security exception, just
remove row)
Parameters: requestedFunction - code for function -- Add, Update, Delete, Search (read) Parameters: items - is a collection of RowSecuredDBObjects true if AT LEAST ONE item in collectino is allowed; also manipulates input list, removing unallowed items throws: DBException - upon database communication error |
removeGroup | public void removeGroup(String group) throws DBException(Code) | | remove a permissions group
Parameters: group - to be removed throws: DBException - upon database communication error |
retrieve | public void retrieve() throws DBException(Code) | | retrieve object on criteria provided in fields
throws: DBException - upon database communication error |
searchAndRetrieveList | public synchronized ArrayList searchAndRetrieveList() throws DBException(Code) | | search on criteria provided in fields, and after search phase iterate
through collection, testing each row's privileges remove any row which
does not have privileges; (do not throw security exception, just remove
row)
list of RowSecuredDBObject's which are both found AND allowed for this requester throws: DBException - upon database communication error |
searchAndRetrieveList | public synchronized ArrayList searchAndRetrieveList(String sortKeys) throws DBException(Code) | | search on criteria provided in fields, and after search phase iterate
through collection, testing each row's privileges remove any row which
does not have privileges; (do not throw security exception, just remove
row) sort results by sortKeys
Parameters: sortKeys - sort field(s) list of RowSecuredDBObject's which are both found AND allowed for this requester throws: DBException - upon database communication error |
setPermissions | public void setPermissions(String group, int perm) throws DBException(Code) | | set the group and permissions for this object; owner id is taken from
getRequestingUid() before permissions can be set, caller's permission
to change permissions is tested
Parameters: group - name of group Parameters: perm - value of permissions throws: DBException - upon database communication error |
setPermissions | public void setPermissions(int perm) throws DBException(Code) | | set the permissions for this object; group bits are ignored; only owner
& "other" permissions apply with this method owner id is taken from
getRequestingUid()
Parameters: perm - permissions to set throws: DBException - upon database communication error |
update | public void update() throws DBException(Code) | | before allowing update, check permission
throws: DBException - upon database communication error |
Methods inherited from com.jcorporate.expresso.core.dbobj.SecuredDBObject | public void add() throws DBException(Code)(Java Doc) public boolean canRequesterAdd() throws DBException(Code)(Java Doc) public boolean canRequesterDelete() throws DBException(Code)(Java Doc) public boolean canRequesterRead() throws DBException(Code)(Java Doc) public boolean canRequesterUpdate() throws DBException(Code)(Java Doc) public boolean checkAllowed(String requestedFunction) throws DBException(Code)(Java Doc) public void copyAttributes(DBObject returnObj) throws DBException(Code)(Java Doc) public synchronized int count() throws com.jcorporate.expresso.core.db.DBException(Code)(Java Doc) protected synchronized void createSecurityCache() throws CacheException(Code)(Java Doc) public void delete() throws DBException(Code)(Java Doc) public synchronized void deleteAll() throws com.jcorporate.expresso.core.db.DBException(Code)(Java Doc) public boolean find() throws DBException(Code)(Java Doc) public int getRequestingUid()(Code)(Java Doc) protected String getString(String stringCode, Object[] args) throws DBException(Code)(Java Doc) protected String getString(String stringCode) throws DBException(Code)(Java Doc) protected String getString(String stringCode, String arg1) throws DBException(Code)(Java Doc) protected String getString(String stringCode, String arg1, String arg2) throws DBException(Code)(Java Doc) protected String getString(String stringCode, String arg1, String arg2, String arg3) throws DBException(Code)(Java Doc) protected String getString(String stringCode, String arg1, String arg2, String arg3, String arg4) throws DBException(Code)(Java Doc) public int getSystemUid()(Code)(Java Doc) public static SecuredDBObject instantiate(String className) throws DBException(Code)(Java Doc) public void isAllowed(String requestedFunction) throws SecurityException, DBException(Code)(Java Doc) public void retrieve() throws DBException(Code)(Java Doc) public synchronized void search() throws DBException(Code)(Java Doc) public synchronized ArrayList searchAndRetrieveList() throws DBException(Code)(Java Doc) public synchronized ArrayList searchAndRetrieveList(String sortKeys) throws DBException(Code)(Java Doc) public void setRequestingUid(int newUid)(Code)(Java Doc) public void update() throws DBException(Code)(Java Doc)
|
Methods inherited from com.jcorporate.expresso.core.dbobj.DBObject | public void add() throws DBException(Code)(Java Doc) protected synchronized void addDetail(String objName, String keyFieldsLocal, String keyFieldsForeign) throws DBException(Code)(Java Doc) protected synchronized void addField(String fieldName, String fieldType, int fieldSize, int fieldPrecision, boolean allowNull, String fieldDescription) throws DBException(Code)(Java Doc) protected synchronized void addField(String fieldName, String fieldType, int fieldSize, boolean allowNull, String fieldDescription) throws DBException(Code)(Java Doc) protected void addFieldError(String fieldName, String errorMessage)(Code)(Java Doc) public void addFoundKeys(String fieldName)(Code)(Java Doc) public synchronized void addIfNeeded() throws DBException(Code)(Java Doc) protected void addIndex(String indexName, String fieldNames, boolean isUnique) throws IllegalArgumentException, DBException(Code)(Java Doc) protected synchronized void addKey(String keyFieldName) throws DBException(Code)(Java Doc) public synchronized void addOrUpdate() throws DBException(Code)(Java Doc) public void addSortKey(String fieldString, boolean ascending)(Code)(Java Doc) protected void addTransition(Transition t) throws DBException(Code)(Java Doc) protected synchronized void addVirtualField(String fieldName, String fieldType, int fieldSize, int fieldPrecision, boolean allowNull, String fieldDescription) throws DBException(Code)(Java Doc) protected synchronized void addVirtualField(String fieldName, String fieldType, int fieldSize, int fieldPrecision, boolean allowNull, String descripKey, String fieldDescription) throws DBException(Code)(Java Doc) protected synchronized void addVirtualField(String fieldName, String fieldType, int fieldSize, String fieldDescription) throws DBException(Code)(Java Doc) protected synchronized void addVirtualField(String fieldName, String fieldType, int fieldSize, String descripKey, String fieldDescription) throws DBException(Code)(Java Doc) public double average(String fieldName) throws DBException(Code)(Java Doc) public synchronized void basicAdd() throws DBException(Code)(Java Doc) public void cacheIsChangedComparison() throws DBException(Code)(Java Doc) protected synchronized void checkAllReferredToBy() throws DBException(Code)(Java Doc) protected synchronized void checkAllRefs() throws DBException(Code)(Java Doc) public synchronized void checkAllRefsPublic() throws DBException(Code)(Java Doc) public boolean checkAllowed(String function) throws DBException(Code)(Java Doc) protected void checkDeleteDetailPerm(DBObject obj) throws DBException(Code)(Java Doc) public synchronized void checkField(String fieldName, String fieldValue) throws DBException(Code)(Java Doc) protected synchronized void checkRef(String foreignKeyNames, DBObject refObject, String errorMessage) throws DBException(Code)(Java Doc) protected synchronized void checkRef(String foreignKeyNames, DBObject refObject, String errorMessage, boolean allowBlank) throws DBException(Code)(Java Doc) public synchronized void clear() throws DBException(Code)(Java Doc) public synchronized void clearDistinctFields() throws DBException(Code)(Java Doc) protected void clearError(String fieldName)(Code)(Java Doc) public synchronized void clearFieldsToRetrieve() throws DBException(Code)(Java Doc) public void clearSortKeys()(Code)(Java Doc) protected synchronized boolean containsWildCards(String fieldValue) throws DBException(Code)(Java Doc) protected void copyAttributes(DBObject returnObj) throws DBException(Code)(Java Doc) public synchronized int count() throws DBException(Code)(Java Doc) public void delete() throws DBException(Code)(Java Doc) public synchronized void delete(boolean deleteDetails) throws DBException(Code)(Java Doc) public synchronized void deleteAll() throws DBException(Code)(Java Doc) public synchronized void deleteAll(boolean oneByOne) throws DBException(Code)(Java Doc) protected void deleteDetails(DBConnection detailConnection) throws DBException(Code)(Java Doc) protected String denotesRange(String fieldValue)(Code)(Java Doc) public boolean equals(Object parm1)(Code)(Java Doc) public boolean find() throws DBException(Code)(Java Doc) public String forKey()(Code)(Java Doc) public String formatDateTime(String fieldName) throws DBException(Code)(Java Doc) public Object get(String fieldName) throws DataException(Code)(Java Doc) public Map getAllAttributes()(Code)(Java Doc) public Object getAttribute(String attribName)(Code)(Java Doc) public Iterator getAttributesIterator(String fieldName) throws DBException(Code)(Java Doc) protected String getBooleanFieldValue(boolean fieldValue) throws DBException(Code)(Java Doc) public int getCacheSize()(Code)(Java Doc) public static synchronized HashMap getCacheStatsMap()(Code)(Java Doc) protected CacheUtils getCacheUtil()(Code)(Java Doc) public synchronized boolean getCheckZeroUpdate() throws DBException(Code)(Java Doc) public String getCustomWhereClause()(Code)(Java Doc) public synchronized String getDBName()(Code)(Java Doc) public String getDataContext()(Code)(Java Doc) public DataField getDataField(String fieldName) throws DBException(Code)(Java Doc) public synchronized DataTransferObject getDataTransferObject() throws DBException(Code)(Java Doc) public Enumeration getDetails() throws DBException(Code)(Java Doc) public synchronized int getDistinctFieldCount() throws DBException(Code)(Java Doc) public String[] getDistinctFields() throws DBException(Code)(Java Doc) public synchronized String getField(String fieldName) throws DBException(Code)(Java Doc) public BigDecimal getFieldBigDecimal(String fieldName) throws DBException(Code)(Java Doc) public boolean getFieldBoolean(String fieldName) throws DBException(Code)(Java Doc) public byte getFieldByte(String fieldName) throws DBException(Code)(Java Doc) public byte[] getFieldByteArray(String fieldName) throws DBException(Code)(Java Doc) protected String getFieldData(String fieldName)(Code)(Java Doc) public java.util.Date getFieldDate(String fieldName) throws DBException(Code)(Java Doc) public String getFieldDecimalFormatted(String fieldName, String formatPattern) throws DBException(Code)(Java Doc) public double getFieldDouble(String fieldName) throws DBException(Code)(Java Doc) public String getFieldErrorMessage(String fieldName)(Code)(Java Doc) public float getFieldFloat(String fieldName) throws DBException(Code)(Java Doc) public int getFieldInt(String fieldName) throws DBException(Code)(Java Doc) public long getFieldLong(String fieldName) throws DBException(Code)(Java Doc) public DataFieldMetaData getFieldMetaData(String fieldName)(Code)(Java Doc) public short getFieldShort(String fieldName) throws DBException(Code)(Java Doc) public synchronized int getFieldsToRetrieveCount() throws DBException(Code)(Java Doc) public Class getFilterClass()(Code)(Java Doc) public long getFoundCount()(Code)(Java Doc) public Object[] getFoundKeysArray()(Code)(Java Doc) protected Vector getISOValuesDefault(String valueField, String descripField) throws DBException(Code)(Java Doc) protected Vector getISOValuesDefault(String valueField, String descripField, String whereClause) throws DBException(Code)(Java Doc) protected Vector getISOValuesDefault(String valueField, String descripField, String whereClause, String sortKeyString) throws DBException(Code)(Java Doc) public synchronized Object[] getIndexArray() throws DBException(Code)(Java Doc) public String getKey()(Code)(Java Doc) public Iterator getKeyFieldListIterator() throws DBException(Code)(Java Doc) public String getLength(String fieldName) throws DBException(Code)(Java Doc) public int getLengthInt(String fieldName) throws DBException(Code)(Java Doc) public DBConnection getLocalConnection()(Code)(Java Doc) public Locale getLocale()(Code)(Java Doc) public Logger getLogger()(Code)(Java Doc) public String getLookupObject(String fieldName) throws DBException(Code)(Java Doc) public String getMax(String fieldName, boolean whereClause) throws DBException(Code)(Java Doc) public String getMax(String fieldName) throws DBException(Code)(Java Doc) public int getMaxRecords()(Code)(Java Doc) public String getMyKeys() throws DBException(Code)(Java Doc) protected Object[] getMyUpdatesArray()(Code)(Java Doc) public int getOffsetRecord()(Code)(Java Doc) protected PatternMatcher getPatternMatcher()(Code)(Java Doc) public int getPrecision(String fieldName) throws DBException(Code)(Java Doc) public String getSerializedForm(DBField theField) throws DBException(Code)(Java Doc) public synchronized String getStringFilter(String fieldName) throws DBException(Code)(Java Doc) protected DBObject getThisDBObj() throws DBException(Code)(Java Doc) public static synchronized DBObject getThisDBbj(DataTransferObject dto) throws DBException(Code)(Java Doc) public String getValidValueDescrip(String fieldName) throws DBException(Code)(Java Doc) public synchronized Vector getValidValues(String fieldName) throws DBException(Code)(Java Doc) public java.util.List getValidValuesList(String fieldName) throws DBException(Code)(Java Doc) public Vector getValues() throws DBException(Code)(Java Doc) protected Vector getValuesDefault(String valueField, String descripField) throws DBException(Code)(Java Doc) protected Vector getValuesDefault(String valueField, String descripField, String whereClause) throws DBException(Code)(Java Doc) protected Vector getValuesDefault(String valueField, String descripField, String whereClause, String sortKeyString) throws DBException(Code)(Java Doc) public boolean hasError(String fieldName)(Code)(Java Doc) public boolean hasErrors()(Code)(Java Doc) public boolean haveAllKeys() throws DBException(Code)(Java Doc) protected synchronized void initialize() throws DBException(Code)(Java Doc) public boolean isCached()(Code)(Java Doc) public boolean isChanged() throws DBException(Code)(Java Doc) public synchronized boolean isDistinct() throws DBException(Code)(Java Doc) public synchronized boolean isEmpty() throws DBException(Code)(Java Doc) public boolean isFieldDistinct(String fieldName) throws DBException(Code)(Java Doc) public boolean isFieldNull(String fieldName) throws DBException(Code)(Java Doc) public boolean isFieldToRetrieve(String fieldName) throws DBException(Code)(Java Doc) public synchronized boolean isFieldsToRetrieve() throws DBException(Code)(Java Doc) public synchronized boolean isMultiValued(String fieldName) throws DBException(Code)(Java Doc) public boolean isReadOnly(String fieldName) throws DBException(Code)(Java Doc) public boolean isSecret(String fieldName) throws DBException(Code)(Java Doc) public boolean isVirtual(String fieldName) throws DBException(Code)(Java Doc) public synchronized int loadFromConnection(DBConnection connection) throws DBException(Code)(Java Doc) protected void logChange(DBField oneField, String fieldValue)(Code)(Java Doc) public double max(String fieldName) throws DBException(Code)(Java Doc) public double min(String fieldName) throws DBException(Code)(Java Doc) public DBObject newInstance() throws DBException(Code)(Java Doc) protected String noNewLine(String fieldValue)(Code)(Java Doc) protected String noQuotes(String oldString)(Code)(Java Doc) protected synchronized void notifyListeners(String eventCode) throws DBException(Code)(Java Doc) public synchronized void populateDefaultValues() throws DBException(Code)(Java Doc) protected synchronized void referredToBy(DBObject refObject, String foreignKeyNames, String errorMessage) throws DBException(Code)(Java Doc) public void removeAttribute(String attributeName)(Code)(Java Doc) public synchronized void removeFromCache(DBObject theDBObj) throws DBException(Code)(Java Doc) public void retrieve() throws DBException(Code)(Java Doc) public boolean retrieveFromCache() throws DBException(Code)(Java Doc) public void saveBinaryField(String fieldName, byte[] incomingData) throws DBException(Code)(Java Doc) public synchronized void search() throws DBException(Code)(Java Doc) public synchronized void search(String sortKeyString) throws DBException(Code)(Java Doc) public synchronized ArrayList searchAndRetrieveList() throws DBException(Code)(Java Doc) public synchronized ArrayList searchAndRetrieveList(String sortKeyString) throws DBException(Code)(Java Doc) public void set(String fieldName, Object o) throws DataException(Code)(Java Doc) public synchronized void setAttribute(String attribName, Object attribValue)(Code)(Java Doc) public synchronized void setCacheSize()(Code)(Java Doc) public synchronized void setCharset(String newCharSet) throws DBException(Code)(Java Doc) public synchronized void setCheckZeroUpdate(boolean newFlag) throws DBException(Code)(Java Doc) public synchronized void setConnection(DBConnection newConnection) throws DBException(Code)(Java Doc) public synchronized void setConnection(DBConnection newConnection, String setupTablesContext) throws DBException(Code)(Java Doc) public synchronized void setCustomWhereClause(String newCustomWhere)(Code)(Java Doc) public synchronized void setCustomWhereClause(String newCustomWhere, boolean append)(Code)(Java Doc) public void setDataContext(String newContext)(Code)(Java Doc) public void setDataField(String fieldName, DataField o) throws DataException(Code)(Java Doc) public synchronized void setDataTransferObject(DataTransferObject dto) throws DBException(Code)(Java Doc) protected synchronized void setDefaultValue(String fieldName, String fieldValue) throws DBException(Code)(Java Doc) public synchronized void setDescription(String newDescription) throws DBException(Code)(Java Doc) public synchronized void setField(String fieldName, byte fieldValue) throws DBException(Code)(Java Doc) public synchronized void setField(String fieldName, byte[] fieldValue) throws DBException(Code)(Java Doc) public synchronized void setField(String fieldName, short fieldValue) throws DBException(Code)(Java Doc) public synchronized void setField(String fieldName, int fieldValue) throws DBException(Code)(Java Doc) public synchronized void setField(String fieldName, long fieldValue) throws DBException(Code)(Java Doc) public synchronized void setField(String fieldName, double fieldValue) throws DBException(Code)(Java Doc) public synchronized void setField(String fieldName, BigDecimal fieldValue) throws DBException(Code)(Java Doc) public synchronized void setField(String fieldName, boolean fieldValue) throws DBException(Code)(Java Doc) public synchronized void setField(String fieldName, String fieldValue) throws DBException(Code)(Java Doc) public void setField(String fieldName, java.util.Date fieldValue) throws DBException(Code)(Java Doc) protected synchronized void setFieldData(String fieldName, String fieldValue)(Code)(Java Doc) protected synchronized void setFieldData(String fieldName, byte[] fieldValue)(Code)(Java Doc) public void setFieldDistinct(String fieldName, boolean flag) throws DBException(Code)(Java Doc) public void setFieldsToRetrieve(String fieldNames) throws DBException(Code)(Java Doc) public Class setFilterClass(Class filter)(Code)(Java Doc) public Filter setFilterClass(Filter filter)(Code)(Java Doc) public synchronized void setKeys(String keyValues) throws DBException(Code)(Java Doc) public void setLocale(Locale newLocale)(Code)(Java Doc) public synchronized void setLookupField(String fieldName, String lookupFieldName)(Code)(Java Doc) public synchronized void setLookupObject(String fieldName, String objectName) throws DBException(Code)(Java Doc) protected synchronized void setMask(String fieldName, String newMask) throws DBException(Code)(Java Doc) public synchronized void setMaxRecords(int newMax) throws DBException(Code)(Java Doc) protected synchronized void setMultiValued(String fieldName) throws DBException(Code)(Java Doc) protected synchronized void setName(String theName) throws DBException(Code)(Java Doc) public synchronized void setOffsetRecord(int newOffset) throws DBException(Code)(Java Doc) public synchronized void setReadOnly(String fieldName) throws DBException(Code)(Java Doc) public synchronized void setSchema(Schema schema) throws DBException(Code)(Java Doc) public synchronized void setSecret(String fieldName) throws DBException(Code)(Java Doc) protected void setSortKey(String sortKeyString)(Code)(Java Doc) public synchronized String setStringFilter(String fieldName, String filterMethod) throws DBException(Code)(Java Doc) public void setStringFiltersOnAll(String filter) throws DBException(Code)(Java Doc) public synchronized void setTargetDbSchema(String theDbSchema) throws DBException(Code)(Java Doc) public synchronized void setTargetTable(String theTable) throws DBException(Code)(Java Doc) protected void setupFields() throws DBException(Code)(Java Doc) protected synchronized double sqlAggrFunction(String func, String fieldName) throws DBException(Code)(Java Doc) public double sum(String fieldName) throws DBException(Code)(Java Doc) public String toDebugString()(Code)(Java Doc) public void update() throws DBException(Code)(Java Doc) public void update(boolean updateChangedFieldsOnly) throws DBException(Code)(Java Doc) public synchronized void updateAll() throws DBException(Code)(Java Doc) public void updateAll(boolean oneByOne) throws DBException(Code)(Java Doc) public void verify() throws DBException(Code)(Java Doc)
|
|
|