| java.lang.Object com.jcorporate.expresso.core.dbobj.MultiDBObject com.jcorporate.expresso.core.dbobj.MultiDBObjectTransaction
MultiDBObjectTransaction | public class MultiDBObjectTransaction extends MultiDBObject (Code) | | A MultiDBObjectTransaction is a group of dbobjects that are "related" - e.g. defined
as being part of a foreign-key/primary-key relationship. This may be
master/detail or a more complex relationship, but it can be expressed as a
"join" operation between the tables.
After establishing the relationships between the objects the MultiDBObject
can have search criteria set for it & searchAndRetrieve operations done just
like a 'regular' DBObject, but these operations affect the entire related
group of objects. At the moment, MultiDBObjects are read-only, though that
may change in the future.
Creation date: (10-12-2003 11:32:03 AM)
author Yves Henri AMAIZO
|
MultiDBObjectTransaction | public MultiDBObjectTransaction() throws DBException(Code) | | MultiDBObjectTransaction constructor comment.
|
getDBName | public synchronized String getDBName()(Code) | | Return the name of the context/database connection that this DB object is
using. If none is set, then we are using the "default" database/context.
the name of the datacontext |
setConnection | public void setConnection(DBConnection connection)(Code) | | Parameters: connection - |
setDBName | public synchronized void setDBName(String newOther) throws DBException(Code) | | Set the database name/context for this multi db object. If setDBName is not called,
the "default" db name and context is used. See
com.jcorporate.expresso.core.misc.ConfigManager for information about multiple
contexts. Note that setting a db/context name only affects the object when it
allocates it's own db connections - if a specific connection is used (via the
setConnection(DBConnection) method) then that connection must be already
associated with the correct db/context.
Parameters: newOther - The name of the context or database to use |
Methods inherited from com.jcorporate.expresso.core.dbobj.MultiDBObject | public void addDBObj(String dbobjClassName, String shortName) throws DBException(Code)(Java Doc) public void addDBObj(DBObject oneDBObj, String shortName) throws DBException(Code)(Java Doc) public DBObject assembleObject(String shortName) throws DBException(Code)(Java Doc) public boolean buildFromClause() throws DBException(Code)(Java Doc) public String buildWhereClause(boolean useAllFields) throws DBException(Code)(Java Doc) protected String buildWhereClauseBuffer(boolean useAllFields, FastStringBuffer myStatement) throws DBException(Code)(Java Doc) protected String buildWhereClauseBuffer(boolean useAllFields, FastStringBuffer myStatement, String dboAlias) throws DBException(Code)(Java Doc) public void clear() throws com.jcorporate.expresso.core.db.DBException(Code)(Java Doc) public synchronized int count(String expr) throws DBException(Code)(Java Doc) public synchronized int count() throws DBException(Code)(Java Doc) public boolean getAppendCustomWhereClause()(Code)(Java Doc) public Object getAttribute(String attribName)(Code)(Java Doc) public DBConnection getConnection()(Code)(Java Doc) public String getCustomFromClause()(Code)(Java Doc) public String getCustomWhereClause()(Code)(Java Doc) public synchronized String getDBName()(Code)(Java Doc) public DBObject getDBObject(String shortName) throws DBException(Code)(Java Doc) public synchronized String getDataContext()(Code)(Java Doc) public String getField(String shortName, String fieldName) throws DBException(Code)(Java Doc) public BigDecimal getFieldBigDecimal(String shortName, String fieldName) throws DBException(Code)(Java Doc) public Date getFieldDate(String shortName, String fieldName) throws DBException(Code)(Java Doc) public String getFieldDecimalFormatted(String shortName, String fieldName, String formatPattern) throws DBException(Code)(Java Doc) public double getFieldDouble(String shortName, String fieldName) throws DBException(Code)(Java Doc) public float getFieldFloat(String shortName, String fieldName) throws DBException(Code)(Java Doc) public int getFieldInt(String shortName, String fieldName) throws DBException(Code)(Java Doc) public long getFieldLong(String shortName, String fieldName) throws DBException(Code)(Java Doc) public int getMaxRecords()(Code)(Java Doc) public int getOffsetRecord()(Code)(Java Doc) public boolean getShortNameAsAlias()(Code)(Java Doc) protected MultiDBObject getThisMultiDBObj() throws DBException(Code)(Java Doc) public boolean isFieldNull(String shortName, String fieldName) throws DBException(Code)(Java Doc) public synchronized List makeDirectQueryList(String sqlQuery, int fieldCount) throws DBException(Code)(Java Doc) protected String makeLimitationStub(DBConnection theConnection)(Code)(Java Doc) public synchronized List searchAndRetrieveList(String sortKeyString) throws DBException(Code)(Java Doc) public synchronized List searchAndRetrieveList() throws DBException(Code)(Java Doc) public String selectFieldString(DBObject oneObj, String fieldName) throws DBException(Code)(Java Doc) public synchronized void setAppendCustomWhereClause(boolean newValue)(Code)(Java Doc) public synchronized void setAttribute(String attribName, Object attribValue)(Code)(Java Doc) public void setCaseSensitiveQuery(boolean isCaseSensitiveQuery)(Code)(Java Doc) public void setConnection(DBConnection connection)(Code)(Java Doc) public synchronized void setCustomFromClause(String newCustomFrom)(Code)(Java Doc) public synchronized void setCustomWhereClause(String newCustomWhere)(Code)(Java Doc) public synchronized void setCustomWhereClause(String newCustomWhere, boolean append)(Code)(Java Doc) public synchronized void setDBName(String newOther) throws DBException(Code)(Java Doc) public void setField(String shortName, String fieldName, String fieldValue) throws DBException(Code)(Java Doc) public void setFieldDistinct(String shortName, String fieldName, boolean flag) throws DBException(Code)(Java Doc) public void setFieldsToRetrieve(String shortName, String fieldNames) throws DBException(Code)(Java Doc) public void setFieldsToRetrieveToNone(String shortName) throws DBException(Code)(Java Doc) public void setForeignKey(String shortName, String foreignKey, String shortName2, String primaryKey) throws DBException(Code)(Java Doc) public void setInnerJoin(String leftShortName, String leftColumn, String rightShortName, String rightColumn) throws DBException(Code)(Java Doc) public void setLeftJoin(String leftShortName, String leftColumn, String rightShortName, String rightColumn) throws DBException(Code)(Java Doc) public synchronized void setMaxRecords(int newMax) throws DBException(Code)(Java Doc) public synchronized void setOffsetRecord(int newOffset) throws DBException(Code)(Java Doc) public void setRightJoin(String leftShortName, String leftColumn, String rightShortName, String rightColumn) throws DBException(Code)(Java Doc) public void setSelectDistinct(boolean flag)(Code)(Java Doc) public void setShortNameAsAlias(boolean flag)(Code)(Java Doc) protected void setupFields() throws DBException(Code)(Java Doc)
|
|
|