|
Expresso 5-6 | ||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||
| Packages that use DataException | |
| com.jcorporate.expresso.core.dataobjects | The DataObjects package contains a set of interfaces and base classes that give the ability to provide a unified object approach to various data sources. |
| com.jcorporate.expresso.core.dataobjects.jdbc | This package contains implementations and helper classes of DataObjects that pertain to JDBC data sources only. |
| com.jcorporate.expresso.core.dbobj | Ancestor objects for all Database Objects and Schemas. |
| Uses of DataException in com.jcorporate.expresso.core.dataobjects |
| Subclasses of DataException in com.jcorporate.expresso.core.dataobjects | |
class |
DuplicateKeyException
Exception that gets thrown when there's a duplicate key in the table. |
| Methods in com.jcorporate.expresso.core.dataobjects that throw DataException | |
void |
BaseDataObject.setFieldsWithDefaults()
Sets the fields of this object with the default values defined in the metadata. The behavior of this function is such that it only populates fields if there is no current value set. This is the same behavior that existed previously in DefaultAutoElement. |
void |
DataField.checkValue()
Make sure the value of the field is valid. |
void |
DataExecutorInterface.add(DataObject valueObject)
Takes a DataObject and adds it to the underlying data source |
void |
DataExecutorInterface.delete(DataObject valueObject)
Takes a DataObject and deletes it from the underlying data source |
void |
DataExecutorInterface.update(DataObject valueObject,
boolean updateChangedFieldsOnly)
Takes a DataObject and updates it to the underlying data source |
boolean |
DataExecutorInterface.retrieve(DataObject valueObject)
Takes a DataObject and retrieves it from the underlying data source |
void |
DataExecutorInterface.addBatch(List valueObjectList)
Adds an entire batch of DataObjects to the underlying data source |
void |
DataExecutorInterface.deleteBatch(List valueObjectList)
Updates an entire batch of DataObjects |
void |
DataExecutorInterface.deleteBatch(List valueObjectList,
boolean deleteWithSetFieldsOnly)
Updates an entire batch of DataObjects |
void |
DataExecutorInterface.updateBatch(List valueObjectList)
Updates an entire batch of DataObjects |
void |
DataExecutorInterface.updateBatch(List valueObjectList,
boolean updateChangedFieldsOnly)
Updates an entire batch of DataObjects |
void |
DataExecutorInterface.updateAll(DataObject valueObject,
boolean updateChangedCache)
Takes a DataObject and updates it to the underlying data source |
void |
DataExecutorInterface.deleteAll(DataObject valueObject,
boolean deleteChangedCache)
Takes a DataObject and deletes it from the underlying data source |
void |
DataExecutorInterface.runStoreProcedure(DataObject valueObject)
Takes a DataObject and run it from the underlying data source |
void |
SynchronizedDataObject.set(String fieldName,
Object o)
Directly sets the field value without getting the datafield object |
void |
SynchronizedDataObject.setFieldsWithDefaults()
Sets the fields of this object with the default values defined in the metadata. The behavior of this function is such that it only populates fields if there is no current value set. This is the same behavior that existed previously in DefaultAutoElement. |
Object |
SynchronizedDataObject.get(String fieldName)
Retrieve the native object type for the given field name. |
void |
Defineable.setDefinitionName(String definitionName)
Use this method to set the key to the definition name for the Defineable database object. |
List |
DataQueryInterface.searchAndRetrieve(DataObject criteria,
String sortOrder)
Performs a datasource search so that the criteria set in the DataObject is used. |
List |
DataQueryInterface.searchAndRetrieve(DataObject criteria)
Performs a datasource search so that the criteria set in the DataObject is used. |
List |
DataQueryInterface.searchAndRetrieve(DataTransferObject criteria)
Performs a datasource search so that the criteria set by a DataTransferObject
is used. |
List |
DataQueryInterface.searchAndRetrieve(DataTransferObject criteria,
String sortOrder)
Performs a datasource search so that the criteria set by a DataTransferObject
is used. |
boolean |
DataQueryInterface.find(DataObject criteria)
Finds a single record based upon the criteria specified by the DataObject |
boolean |
DataQueryInterface.find(DataTransferObject criteria)
Finds a single record based upon the criteria specified by the DataTransferObject |
Object |
DataObject.get(String fieldName)
Directly gets the DataField Data without having to deal with the DataField itself |
void |
DataObject.set(String fieldName,
Object o)
Directly sets the field value without getting the datafield object |
void |
DataObject.setFieldsWithDefaults()
Sets the fields of this object with the default values defined in the metadata. |
static Object |
DataObjectFactory.createObject(Class clazz,
String dataContext,
int uid)
Creates an object that doesn't implement Defineable. |
static DataObject |
DataObjectFactory.createDataObject(Class clazz,
String dataContext,
int uid)
Typesafe way of creating a data object that doesn't implement Defineable |
static DataObject |
DataObjectFactory.createDataObject(Class clazz,
String dataContext,
String definition,
int uid)
Typesafe way of creating a dataobject |
static Object |
DataObjectFactory.createObject(Class clazz,
String dataContext,
String definition,
int uid)
Create an object given the class, datacontext, definition and uid. |
Object |
DefaultDataField.getSerializedForm()
Returns the form in a way suitable for storage in a database or other data source. |
void |
DefaultDataField.checkValue()
Make sure the value of the field is valid. |
| Uses of DataException in com.jcorporate.expresso.core.dataobjects.jdbc |
| Subclasses of DataException in com.jcorporate.expresso.core.dataobjects.jdbc | |
class |
JDBCUtil
This class provides utility functions that are common across the jdbc. |
| Methods in com.jcorporate.expresso.core.dataobjects.jdbc that throw DataException | |
DBConnectionPool |
JDBCDataObject.getConnectionPool()
Retrieve the connection pool associated with this DBObject. |
String |
JDBCDataObject.getSerialForm(DataFieldMetaData theField)
This function is called whenever the DBField is about to be written to the database. |
void |
JoinedDataObjectMetaData.addDataObject(Class dataObjectClass,
String definitionName,
String alias,
String fieldExpressionList)
Add a DB Object to the objects being used for this multidbobj query. |
String |
JoinedDataObjectMetaData.getTargetSQLTable(String dataContext)
Set the target table for this DBObject. |
HashMap |
JoinedDataObjectMetaData.createNestedDataObjects()
Creates a new copy of blank data objects for use in the main objects |
String |
JDBCUtil.formatDateTime(DataObject theObject,
String fieldName)
Given the value of a date/time or date/time field, return the value formatted as appropriate for the current DBMS. |
String |
JDBCUtil.formatDateTime(DataObject theObject,
String fieldName,
boolean surroundWithQuotes)
Given the value of a date/time or datetime field, return the value formatted as appropriate for the current DBMS. |
Date |
JDBCUtil.getDateField(DataObject theObject,
String fieldName)
Helper function that helps convert any string values from the database's format |
protected com.jcorporate.expresso.core.dataobjects.jdbc.JDBCUtil.DateReturnFormat |
JDBCUtil.formatDateTimeInternal(DataObject theObject,
String fieldName)
This class combines the old getFieldDate() with quoteIfNeeded() to format the Date-Time fields appropriately for storage. |
String |
JDBCUtil.buildWhereClause(JDBCDataObject criteria,
boolean useAllFields)
Build and return a string consisting of an SQL 'where' clause using the current field values as criteria for the search. |
FastStringBuffer |
JDBCUtil.buildWhereClauseBuffer(JDBCDataObject criteria,
boolean useAllFields,
FastStringBuffer allocatedBuffer)
Build and return a FastStringBuffer ring consisting of an SQL 'where' clause using the current field values as criteria for the search. |
String |
JDBCUtil.quoteIfNeeded(JDBCDataObject targetObject,
String fieldName,
String rangeString)
Return the value of this field, placing double quotes around it if the field's datatype requires it. |
boolean |
JDBCUtil.containsWildCards(JDBCDataObject ownerObject,
String fieldValue)
See if this field value contains wild cards (e.g. pattern matching criteria for the database). |
void |
JDBCUtil.buildStoreProcedureCallableStatement(JDBCDataObject criteria,
CallableStatement myCallableStatement)
Build and return a FastStringBuffer ring consisting of an SQL 'where' clause using the current field values as criteria for the search. |
void |
JDBCExecutor.add(DataObject valueObject)
Takes a DataObject and adds it to the underlying data source |
void |
JDBCExecutor.delete(DataObject valueObject)
Takes a DataObject and deletes it from the underlying data source.
|
void |
JDBCExecutor.update(DataObject valueObject,
boolean updateChangedFieldsOnly)
Takes a DataObject and updates it to the underlying data source |
boolean |
JDBCExecutor.retrieve(DataObject valueObject)
Retrieves the object with keys specified by the valueObject parameter. |
void |
JDBCExecutor.addBatch(List valueObjectList)
Adds an entire batch of DataObjects to the underlying JDBC data source |
void |
JDBCExecutor.updateBatch(List valueObjectList)
Updates an entire batch of DataObjects |
void |
JDBCExecutor.updateAll(DataObject valueObject,
boolean updateChangedCache)
Takes a DataObject and updates all to the underlying data source |
void |
JDBCExecutor.deleteAll(DataObject valueObject,
boolean deleteChangedCache)
Takes a DataObject and deletes it from the underlying data source.
|
protected void |
JDBCExecutor.buildStoreProcedureCallableStatement(DBObject criteria,
CallableStatement myCallableStatement)
Build and return a FastStringBuffer ring consisting of an SQL 'where' clause using the current field values as criteria for the search. |
void |
JDBCExecutor.runStoreProcedure(DataObject valueObject)
Run a store procedure identify by the object with keys specified by the valueObject parameter. |
void |
JDBCExecutor.addBatch(List valueObjectList,
boolean addChangedFieldsOnly)
Adds an entire batch of DataObjects to the underlying JDBC data source |
void |
JDBCExecutor.updateBatch(List valueObjectList,
boolean updateChangedFieldsOnly)
Updates an entire batch of DataObjects |
void |
JDBCExecutor.deleteBatch(List valueObjectList,
boolean deleteWithSetFieldsOnly)
Updates an entire batch of DataObjects |
void |
JDBCExecutor.deleteBatch(List valueObjectList)
Deletes an entire batch of DataObjects |
void |
LobField.setCriteria(JDBCDataObject newCriteria)
Set the search criteria for the blob. |
Blob |
LobField.getBlob(String fieldName)
Retrieves a java.sql.Blob object given the criteria object
set previously. |
Clob |
LobField.getClob(String fieldName)
Retrieves a java.sql.Clob object given the criteria object
set previously. |
InputStream |
LobField.getBlobStream(String fieldName)
Retrieve an input stream for a binary object stored in the database. |
Reader |
LobField.getClobStream(String fieldName)
Retrieve a java.io.Reader a.k.a Unicode stream for a CLOB field. |
String |
LobField.getClobString(String fieldName)
CLOB convenience method. |
InputStream |
LobField.getClobAsciiStream(String fieldName)
Retrieve a java.io.InputStream a.k.a. |
void |
LobField.saveBlob(String fieldName,
InputStream data,
int dataSize)
Saves an InputStream into the database given the criteria and the fieldname (Criteria should have been previously set). |
void |
LobField.saveBlob(String fieldName,
Blob data)
Saves a java.sql.Blob to the record matching the criteria
earlier set. |
void |
LobField.saveClob(String fieldName,
InputStream data,
int length)
Saves an InputStream into the database given the criteria and the fieldname (Criteria should have been previously set). |
void |
LobField.saveClob(String fieldName,
Reader data,
int length)
Saves an InputStream into the database given the criteria and the fieldname (Criteria should have been previously set). |
void |
LobField.saveClob(String fieldName,
String data)
Saves a string to a CLOB field. |
void |
LobField.saveClob(String fieldName,
Clob data)
Saves an InputStream into the database given the criteria and the fieldname (Criteria should have been previously set). |
protected void |
LobField.prepSelectResultSet(JDBCDataObject baseObject,
String fieldName,
DBConnection theConnection)
Internal helper function that does the guts of the work |
protected PreparedStatement |
LobField.prepUpdate(JDBCDataObject baseObject,
String fieldName,
DBConnection theConnection)
Internal helper function to prepare a LOB update |
protected void |
LobField.finalizeUpdate(DBConnection theConnection)
|
protected void |
LobField.oraclePrepSelectForUpdate(JDBCDataObject baseObject,
String fieldName,
DBConnection theConnection)
Internal helper function to prepare a BLOB update for Oracle. |
List |
JDBCQuery.searchAndRetrieve(DataObject criteria,
String sortOrder)
|
List |
JDBCQuery.searchAndRetrieve(DataObject criteria)
|
List |
JDBCQuery.searchAndRetrieve(DataTransferObject criteria)
|
List |
JDBCQuery.searchAndRetrieve(DataTransferObject criteria,
String sortOrder)
|
boolean |
JDBCQuery.find(DataObject criteria)
|
boolean |
JDBCQuery.find(DataTransferObject criteria)
|
void |
JoinedDataField.checkValue()
|
String |
JDBCObjectMetaData.getTargetTable()
Return the Table Name of the current database object. |
boolean |
JDBCObjectMetaData.hasIndex()
Returns true if an Index exists for this array. |
String |
JDBCObjectMetaData.getTargetSQLTable(String dataContext)
Retrieve the full table name associated with this data object |
protected void |
JoinedDataObject.init()
Initialize the dataobject. |
protected void |
JoinedDataObject.initWithBean(JoinedDigesterBean digesterBean,
String definitionName)
Initializes the JoinedDataobject with a digester bean and a definition name This is useful for users creating joins on the fly |
protected void |
JoinedDataObject.initializeFromJoinedDigesterBean(JoinedDigesterBean digesterBean,
JoinedDataObjectMetaData metadata)
Initialization step based upon the digester bean either handed in, or loaded from XML data. |
protected void |
JoinedDataObject.initializeXML(JoinedDataObjectMetaData metadata)
Initialize the metadata based upon XML. |
void |
JoinedDataObject.setDataField(String fieldName,
DataField o)
Sets the field data for the named field. |
void |
JoinedDataObject.set(String fieldName,
Object o)
Sets the name of the field |
Object |
JoinedDataObject.get(String fieldName)
Get the value object associated with the field specifieed. |
void |
JoinedDataObject.setDefinitionName(String definitionName)
Use this method to set the key to the definition name for the Defineable database object. |
protected String |
JoinedDataObject.buildFromClause()
Builds the 'FROM' clause without the 'from' part. |
protected String |
JoinedDataObject.buildUpdateFieldString()
Builds the update field string portion setting question marks for all the field values to be formatted and parsed later in a Prepared statement |
void |
JoinedDataObject.setFieldsWithDefaults()
Sets the fields of this object with the default values defined in the metadata. The behavior of this function is such that it only populates fields if there is no current value set. This is the same behavior that existed previously in DefaultAutoElement. |
| Constructors in com.jcorporate.expresso.core.dataobjects.jdbc that throw DataException | |
JoinedDataObject(String xmlFileURL)
Uses the classloader to load the given xml file url as the definition of the JoinedDataObject |
|
JoinedDataObject(JoinedDataObject definition)
Constructs a new joined data object to have the same definition as the parameter passed in. |
|
JoinedDataObject(JoinedDigesterBean definition,
String definitionName)
Constructor for runtime initialization of custom joined data object. |
|
| Uses of DataException in com.jcorporate.expresso.core.dbobj |
| Methods in com.jcorporate.expresso.core.dbobj that throw DataException | |
String |
DBObjectDef.getTargetTable()
Return the Table Name of the current database object. |
String |
DBObjectDef.getTargetStoreProcedure()
Return the Store procedure Name of the current database object. |
String |
DBObjectDef.getTargetSQLTable(String dataContext)
Return the Table Name of the current database object. |
Object |
DBObject.get(String fieldName)
Directly gets the DataField Data without having to deal with the DataField itself |
void |
DBObject.set(String fieldName,
Object o)
sets the field value by using 'instanceof' operator; convenient for template methods, but less efficient than calling setField() |
void |
DBObject.setDataField(String fieldName,
DataField o)
Same as setField, but works with the DataObject Interface |
void |
AutoDBObject.setDefinitionName(String definitionName)
Use this method to set the key to the definition name for the Defineable database object. |
|
Expresso 5-6 | ||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||