Method Summary |
|
public ListenerType | addDefaultListener(JClass beanClass) Adds a default listener. |
public void | addEntityClass(String className, JClass type) Add an entity. |
public ListenerType | addEntityListener(String entityName, JClass listenerClass) Adds an entity listener. |
public void | addNamedNativeQuery(String name, NamedNativeQueryConfig queryConfig) Adds a named native query. |
public void | addNamedQuery(String name, String query) Adds a named query. |
public void | addSqlResultSetMapping(String resultSetName, SqlResultSetMappingConfig resultSet) Adds a sql result set mapping. |
protected void | callListeners(int callbackIndex, Entity entity) Applies persistence unit default and entity listeners
for @PreXxx, @PostXxx callbacks. |
public void | complete(ArrayList<AmberCompletion> completions) Completions affecting the cache. |
public void | configure() Configure lazy. |
public Entity | copyFromCacheItem(AmberConnection aConn, Entity contextEntity, EntityItem cacheItem) Safely copies a cache item to a context object. |
public AmberConnection | createAmberConnection(boolean isExtended) Returns the cache connection. |
public EmbeddableType | createEmbeddable(JClass beanClass) Adds an embeddable type. |
public EmbeddableType | createEmbeddable(String name, JClass beanClass) Adds an embeddable type. |
public EntityType | createEntity(JClass beanClass) Adds an entity. |
public EntityType | createEntity(String name, JClass beanClass) Adds an entity. |
public EnumType | createEnum(String name, JClass beanClass) Adds an enumerated type. |
public GeneratorTableType | createGeneratorTable(String name) Adds a generator table. |
public MappedSuperclassType | createMappedSuperclass(String name, JClass beanClass) Adds an entity. |
public SequenceIdGenerator | createSequenceGenerator(String name, int size) Returns a sequence generator. |
public Table | createTable(String tableName) Creates a table. |
public Type | createType(String typeName) Creates a type. |
public Type | createType(JClass javaType) Creates a type. |
public void | destroy() destroys the manager. |
public void | generate() Configure lazy. |
public void | generate(JavaClassGenerator javaGen) Configure lazy. |
public AmberContainer | getAmberContainer() |
public CacheConnection | getCacheConnection() Returns the cache connection. |
public Throwable | getConfigException() |
public String | getCreateColumnSQL(int sqlType, int length, int precision, int scale) New Version of getCreateTableSQL which returns
the SQL for the table with the given SQL type
but takes sqlType, length, precision, and scale. |
public boolean | getCreateDatabaseTables() Set true if database tables should be created automatically. |
public DataSource | getDataSource() Gets the data source. |
public ListenerType | getDefaultListener(String className) Gets a default listener. |
public EmbeddableType | getEmbeddable(String className) Returns a matching embeddable type. |
public EmbeddableIntrospector | getEmbeddableIntrospector() Returns the @Embeddable introspector. |
public ClassLoader | getEnhancedLoader() |
public EntityItem | getEntity(EntityType rootType, Object key) Returns the entity with the given key. |
public EntityItem | getEntity(EntityKey entityKey) Returns the entity with the given key. |
public EntityType | getEntityByInstanceClass(String className) Returns a matching entity. |
public AmberEntityHome | getEntityHome(String name) Returns the entity home. |
public EntityItem | getEntityItem(String homeName, Object key) Returns the entity item. |
public ListenerType | getEntityListener(String className) Gets an entity listener. |
public EntityManager | getEntityManager() |
public EntityType | getEntityType(String className) Returns a matching entity. |
public String | getFalseLiteral() Returns the FALSE SQL literal, i.e., either "false" or "0". |
public AmberGenerator | getGenerator() Sets the generator. |
public AmberEntityHome | getHome(Class cl) Returns an EntityHome. |
public AmberEntityHome | getHomeBySchema(String name) Returns the entity home by the schema name. |
public JClassLoader | getJClassLoader() Returns the enhanced loader. |
public MappedSuperclassType | getMappedSuperclass(String className) Returns a matching mapped superclass. |
public JdbcMetaData | getMetaData() Returns the jdbc meta data. |
public String | getName() |
public NamedNativeQueryConfig | getNamedNativeQuery(String name) Returns the named native query. |
public String | getNamedQuery(String name) Returns the named query statement. |
public ResultSetCacheChunk | getQueryChunk(QueryCacheKey key) Returns the query result. |
public ResultSetMetaData | getQueryMetaData(QueryCacheKey key) Returns the query meta data. |
public AbstractQuery | getQueryParseCache(String sql) Returns the query cache. |
public DataSource | getReadDataSource() Gets the read data source. |
public SqlResultSetMappingConfig | getSqlResultSetMapping(String resultSetName) Returns the sql result set mapping. |
public long | getTableCacheTimeout() Get the default table cache time. |
public IdGenerator | getTableGenerator(String name) Returns a table generator. |
public AmberConnection | getThreadConnection(boolean isExtended) Returns the thread's amber connection. |
public boolean | getValidateDatabaseTables() Set true if database tables should be validated automatically. |
public DataSource | getXADataSource() Gets the xa data source. |
public long | getXid() Returns a new xid. |
public boolean | hasPositionFunction() Returns true if POSITION SQL function is allowed. |
public boolean | hasReturnGeneratedKeys() Returns true if generated keys are allowed. |
public void | init() Initialize the resource. |
public void | initEntityHomes() |
public void | initLoaders() Initialize the resource. |
public void | initTables() Configure lazy. |
public void | initType(AbstractEnhancedType type) Configures a type. |
public boolean | isJPA() Gets the JPA flag. |
public boolean | isJta() |
public EntityItem | putEntity(EntityType rootType, Object key, EntityItem entity) Sets the entity result. |
public EntityItem | putEntity(Class cl, Object key, EntityItem entity) Sets the entity result. |
public void | putQueryChunk(QueryCacheKey key, ResultSetCacheChunk chunk) Sets the query result. |
public void | putQueryMetaData(QueryCacheKey key, ResultSetMetaData metaData) Sets the query meta data. |
public void | putQueryParseCache(String sql, AbstractQuery query) Returns the query cache. |
public IdGenerator | putTableGenerator(String name, IdGenerator gen) Sets a table generator. |
public EntityItem | removeEntity(EntityType rootType, Object key) Remove the entity result. |
public void | removeThreadConnection() Unset the thread's amber connection. |
public void | setBytecodeGenerator(boolean isBytecodeGenerator) Set false for EJB-style generation. |
public void | setCreateDatabaseTables(boolean create) Set true if database tables should be created automatically. |
public void | setDataSource(DataSource dataSource) Sets the data source. |
public void | setEnhancedLoader(ClassLoader loader) EJB/CMP needs to set a special enhanced loader. |
public void | setEntityMappingsList(ArrayList<EntityMappingsConfig> entityMappingsList) Sets the entity mappings config. |
public void | setJPA(boolean isJPA) Sets the JPA flag. |
public void | setJtaDataSource(DataSource dataSource) Sets the persistence.xml jta data source. |
public void | setName(String name) |
public void | setNonJtaDataSource(DataSource dataSource) Sets the persistence.xml non-jta data source. |
public void | setReadDataSource(DataSource dataSource) Sets the read data source. |
public void | setTableCacheTimeout(long timeout) Set the default table cache time. |
public void | setValidateDatabaseTables(boolean validate) Set true if database tables should be validated automatically. |
public void | setXADataSource(DataSource dataSource) Sets the XA data source. |
public String | toString() |
public EntityItem | updateCacheItem(EntityType rootType, Object key, Entity contextEntity, EntityItem cacheItem) Updates the cache item after commit. |
public void | updateFlushPriority() Updates global entity priorities for flushing. |