public class HibernateDataSource extends BasicDataSource implements RPCManagerCompletionCallback
See the client reference documentation for details of configuring and using Hibernate DataSources - search for "hibernateIntegration". For a wider general discussion of data integration options with SmartClient Server, search the client documentation for "serverDataIntegration"
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map |
additionalFields
Holds list of additional fields requested by specific
DSRequest. |
static java.lang.Character |
ESCAPE_CHARACTER
Holds character ('~') used to escape wild cards in 'like' clause.
|
protected java.lang.Boolean |
generateRelatedUpdates
Holds value should related updates be generated.
|
protected java.util.List |
relatedUpdates
Holds list of generated related updates.
|
inInitState, OP_ADD, OP_CLIENT_EXPORT, OP_CUSTOM, OP_FETCH, OP_REMOVE, OP_UPDATE, OP_VALIDATE| Modifier and Type | Method and Description |
|---|---|
static void |
commitTransaction(org.hibernate.Transaction trx)
Deprecated.
As of SmartClient 8.0. Use
HibernateTransaction.commitTransaction(Transaction) instead |
static java.lang.String |
escapeValueForFilter(java.lang.Object value,
char escapeChar)
Escapes characters "_" and "%" with specified character in value object.
|
DSField |
getField(java.lang.String fieldName)
Returns
DSField by specified name. |
java.util.List |
getFieldNames(boolean dropIgnored)
Returns combined list of data source configured and request configured field names.
|
static void |
rollbackTransaction(org.hibernate.Transaction trx)
Deprecated.
As of SmartClient 8.0. Use
HibernateTransaction.rollbackTransaction(Transaction) instead |
static org.hibernate.Transaction |
startTransaction()
Deprecated.
As of SmartClient 8.0. Use
HibernateTransaction.startTransaction(RPCManager) instead |
getAuditDataSource, getProperty, shouldAutoJoinTransaction, shouldAutoStartTransaction, transformMultipleFields, transformMultipleFieldsadd, addDynamicDSGenerator, addDynamicDSGenerator, addDynamicDSGenerator, clearDynamicDSGenerators, execute, executeAdd, executeClientExport, executeCustom, executeFetch, executeRemove, executeUpdate, fetch, fetch, fetchById, fetchSingle, fetchSingle, filter, filter, fromXML, fromXML, fromXML, fromXML, fromXML, fromXML, fromXML, fromXML, getAuditRevisionFieldName, getAuditTimestampFieldName, getAuditTypeFieldName, getAuditUserFieldName, getEnumConstantProperty, getEnumOrdinalProperty, getEnumTranslateStrategy, getFieldNames, getListProperties, getListProperties, getPrimaryKey, getProperties, getProperties, getProperties, getPropertyJavaClass, getRecordXPath, getTransactionObject, getTransactionObject, hasRecord, hasRecord, initialized, isModificationOperation, remove, removeDynamicDSGenerator, removeDynamicDSGenerator, removeDynamicDSGenerator, setEnumConstantProperty, setEnumOrdinalProperty, setEnumTranslateStrategy, setProperties, update, validate, validateonFailure, onSuccesspublic static final java.lang.Character ESCAPE_CHARACTER
protected java.util.List relatedUpdates
setProperties();
subsequent calls to setRelationFieldValue() will add DSResponse
objects for every change in related data sources.protected java.lang.Boolean generateRelatedUpdates
execute() call.
true - related updates will be generated;
false - related updates will not be generated;
null - related updates will be generated only for "add" and "update" operations,
related updates will not be generated for "remove" operation.protected java.util.Map additionalFields
DSRequest.public java.util.List getFieldNames(boolean dropIgnored)
dropIgnored - boolean true - ignored fields are dropped;
false - ignored fields are included;List field names.public DSField getField(java.lang.String fieldName)
DSField by specified name. First checks data source configured fields.
Checks request configured fields if it is not found within data source configured fields.
Returns null if fieldName parameter is null or
field is not found.DSField field.public static java.lang.String escapeValueForFilter(java.lang.Object value,
char escapeChar)
value - Object Value which should be escaped.escapeChar - char ecape character.String Escaped string value.public static org.hibernate.Transaction startTransaction()
throws java.lang.Exception
HibernateTransaction.startTransaction(RPCManager) insteadjava.lang.Exceptionpublic static void rollbackTransaction(org.hibernate.Transaction trx)
throws java.lang.Exception
HibernateTransaction.rollbackTransaction(Transaction) insteadjava.lang.Exception - if problems were found rolling back the transactionpublic static void commitTransaction(org.hibernate.Transaction trx)
throws java.lang.Exception
HibernateTransaction.commitTransaction(Transaction) insteadjava.lang.Exception - if problems were found committing the transaction