public class JPA2DataSource extends JPADataSource
<persistence
version="2.0"
xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
...
</persistence>
Implementation is not thread-safe. Data source acquiring mechanism enshures
that single instance of this class will be used in one thread only.additionalFields, AUTO_DERIVE_PROPERTY, BEAN_CLASS_PROPERTY, beanClass, beanName, configName, connectionHolder, em, ESCAPE_CHARACTER, generateRelatedUpdates, ID_CLASS_PROPERTY, idClass, JPA_CONFIG_PROPERTY, relatedUpdates, SCHEMA_BEAN_PROPERTY, shouldRollBackTransaction, strictSQLFiltering, tx, USE_QUALIFIED_CLASS_NAME_PROPERTY, useQualifiedClassNameinInitState, OP_ADD, OP_CLIENT_EXPORT, OP_CUSTOM, OP_FETCH, OP_REMOVE, OP_UPDATE, OP_VALIDATE| Modifier and Type | Method and Description |
|---|---|
java.util.Map |
deriveDS(java.lang.String schemaBean,
java.lang.String id,
boolean extended)
Creates data source configuration from specified fully qualified class name.
|
escapeValueForFilter, execute, executeAdd, executeFetch, executeRemove, executeUpdate, freeResources, getField, getFieldNames, getTransactionObjectKey, increaseOpCount, init, markTransactionForRollBack, onFailure, onFailure, onSuccess, onSuccessgetProperty, shouldAutoJoinTransaction, shouldAutoStartTransactionadd, addDynamicDSGenerator, addDynamicDSGenerator, addDynamicDSGenerator, clearDynamicDSGenerators, executeClientExport, executeCustom, fetch, fetch, fetchById, fetchSingle, fetchSingle, filter, filter, fromXML, fromXML, fromXML, fromXML, fromXML, fromXML, fromXML, fromXML, 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, validatepublic java.util.Map deriveDS(java.lang.String schemaBean,
java.lang.String id,
boolean extended)
JPADataSourcederiveDS in class JPADataSourceschemaBean - String Fully qualified class name.id - String Id for newly created data source.extended - boolean Extended properties will be captured if set to true.Map<String, Object> created data source configuration or
null if it can not be created.