Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES

## Uses of Class
org.apache.cayenne.map.DbEntity

Packages that use DbEntity
org.apache.cayenne | Contains persistence APIs directly accessible by users.
org.apache.cayenne.access | Contains classes that make up Cayenne ORM stack.
org.apache.cayenne.access.jdbc | Contains classes that handle JDBC interactions.
org.apache.cayenne.access.trans | Provides translators for Cayenne queries.
org.apache.cayenne.access.util |
org.apache.cayenne.dba | Contains database adapter API (DbAdapter) and its default implementation.
org.apache.cayenne.dba.db2 | IBM DB2 DbAdapter.
org.apache.cayenne.dba.derby | Apache Derby DbAdapter.
org.apache.cayenne.dba.frontbase | FrontBase DbAdapter.
org.apache.cayenne.dba.hsqldb | HSQLDB DbAdapter.
org.apache.cayenne.dba.ingres |
org.apache.cayenne.dba.mysql | MySQL DbAdapter.
org.apache.cayenne.dba.openbase | OpenBase DbAdapter.
org.apache.cayenne.dba.oracle | Oracle DbAdapter.
org.apache.cayenne.dba.postgres | PostgreSQL DbAdapter.
org.apache.cayenne.dba.sqlite |
org.apache.cayenne.dba.sybase | Sybase DbAdapter.
org.apache.cayenne.map | Contains O/R mapping classes that store relational database metadata information and map it to Java classes.
org.apache.cayenne.project.validator |
org.apache.cayenne.query | Defines standard queries supported by Cayenne and extension mechanism to create custom queries.
org.apache.cayenne.wocompat | Contains classes that interface Cayenne with Apple's WebObjects.

Uses of DbEntity in org.apache.cayenne

Methods in org.apache.cayenne with parameters of type DbEntity
`ObjectId` | `DataRow.createObjectId(String entityName, DbEntity entity)`
`ObjectId` | `DataRow.createObjectId(String entityName, DbEntity entity, String namePrefix)` Extracts PK columns prefixed with some path.

Uses of DbEntity in org.apache.cayenne.access

Fields in org.apache.cayenne.access declared as DbEntity
`protected DbEntity` | `OptimisticLockException.rootEntity`

Methods in org.apache.cayenne.access that return DbEntity
`DbEntity` | `QueryTranslator.getRootDbEntity()`

Methods in org.apache.cayenne.access with parameters of type DbEntity
`List` | `DbGenerator.createConstraintsQueries(DbEntity table)` Creates FK and UNIQUE constraint statements for a given table.
`List` | `DbGenerator.createFkConstraintsQueries(DbEntity table)` Deprecated. since 3.0 as this method is used to generate both FK and UNIQUE constraints, use 'createConstraintsQueries' instead.
`void` | `DbLoaderDelegate.dbEntityAdded(DbEntity ent)`
`void` | `DbLoaderDelegate.dbEntityRemoved(DbEntity ent)`
`void` | `DataPortDelegate.didCleanData(DataPort portTool, DbEntity entity, int rowCount)` Invoked by DataPort right after the end of data cleanup for a given entity.
`void` | `DataPortDelegate.didPortEntity(DataPort portTool, DbEntity entity, int rowCount)` Invoked by DataPort right after the end of data port for a given entity.
`Map` | `ResultIterator.nextObjectId(DbEntity entity)` Returns a map of ObjectId values from the next result row.
`boolean` | `DbLoaderDelegate.overwriteDbEntity(DbEntity ent)` Returns true to tell DbLoader that it is OK to overwrite DbEntity that already exists in the model.
`Query` | `DataPortDelegate.willCleanData(DataPort portTool, DbEntity entity, Query query)` Invoked by DataPort right before the start of data cleanup for a given entity.
`Query` | `DataPortDelegate.willPortEntity(DataPort portTool, DbEntity entity, Query query)` Invoked by DataPort right before the start of data port for a given entity.

Constructors in org.apache.cayenne.access with parameters of type DbEntity
`OptimisticLockException(DbEntity rootEntity, String querySQL, Map qualifierSnapshot)`

Uses of DbEntity in org.apache.cayenne.access.jdbc

Fields in org.apache.cayenne.access.jdbc declared as DbEntity
`protected DbEntity` | `JDBCResultIterator.rootEntity`

Methods in org.apache.cayenne.access.jdbc with parameters of type DbEntity
`Map` | `JDBCResultIterator.nextObjectId(DbEntity entity)` Returns a map of ObjectId values from the next result row.

Uses of DbEntity in org.apache.cayenne.access.trans

Methods in org.apache.cayenne.access.trans that return DbEntity
`DbEntity` | `QueryAssemblerHelper.getDbEntity()`

Methods in org.apache.cayenne.access.trans with parameters of type DbEntity
`String` | `DeleteTranslator.aliasForTable(DbEntity dbEnt)` Deprecated.
`abstract String` | `QueryAssembler.aliasForTable(DbEntity dbEnt)` Returns a name that can be used as column alias.
`String` | `SelectTranslator.aliasForTable(DbEntity ent)` Overrides superclass implementation.
`String` | `UpdateTranslator.aliasForTable(DbEntity dbEnt)`
`String` | `QueryAssembler.aliasForTable(DbEntity ent, DbRelationship rel)`
`String` | `SelectTranslator.aliasForTable(DbEntity ent, DbRelationship rel)`
`protected String` | `SelectTranslator.newAliasForTable(DbEntity ent)` Sets up and returns a new alias for a speciafied table.

Uses of DbEntity in org.apache.cayenne.access.util

Fields in org.apache.cayenne.access.util declared as DbEntity
`protected DbEntity` | `DistinctResultIterator.defaultEntity`

Methods in org.apache.cayenne.access.util with parameters of type DbEntity
`Map` | `DistinctResultIterator.nextObjectId(DbEntity entity)` Returns a Map for the next ObjectId.

Constructors in org.apache.cayenne.access.util with parameters of type DbEntity
`DistinctResultIterator(ResultIterator wrappedIterator, DbEntity defaultEntity, boolean compareFullRows)` Creates new DistinctResultIterator wrapping another ResultIterator.

Uses of DbEntity in org.apache.cayenne.dba

Methods in org.apache.cayenne.dba with parameters of type DbEntity
`protected byte[]` | `JdbcPkGenerator.binaryPK(DbEntity entity)`
`String` | `AutoAdapter.createTable(DbEntity entity)`
`String` | `DbAdapter.createTable(DbEntity entity)` Returns a SQL string that can be used to create database table corresponding to `entity` parameter.
`String` | `JdbcAdapter.createTable(DbEntity entity)` Returns a SQL string that can be used to create database table corresponding to `ent` parameter.
`protected void` | `JdbcAdapter.createTableAppendPKClause(StringBuffer sqlBuffer, DbEntity entity)`
`String` | `AutoAdapter.createUniqueConstraint(DbEntity source, Collection columns)`
`String` | `DbAdapter.createUniqueConstraint(DbEntity source, Collection columns)` Returns a DDL string to create a unique constraint over a set of columns, or null if the unique constraints are not supported.
`String` | `JdbcAdapter.createUniqueConstraint(DbEntity source, Collection columns)` Returns a DDL string to create a unique constraint over a set of columns.
`String` | `AutoAdapter.dropTable(DbEntity entity)`
`String` | `DbAdapter.dropTable(DbEntity entity)` Returns a SQL string that can be used to drop a database table corresponding to `ent` parameter.
`String` | `JdbcAdapter.dropTable(DbEntity ent)` Returns a SQL string to drop a table corresponding to `ent` DbEntity.
`Object` | `JdbcPkGenerator.generatePkForDbEntity(DataNode node, DbEntity ent)` Generates new (unique and non-repeating) primary key for specified dbEntity.
`Object` | `PkGenerator.generatePkForDbEntity(DataNode dataNode, DbEntity ent)` Generates new (unique and non-repeating) primary key for specified DbEntity.
`protected int` | `JdbcPkGenerator.pkFromDatabase(DataNode node, DbEntity ent)` Performs primary key generation ignoring cache.

Uses of DbEntity in org.apache.cayenne.dba.db2

Methods in org.apache.cayenne.dba.db2 with parameters of type DbEntity
`protected String` | `DB2PkGenerator.createSequenceString(DbEntity entity)` Returns CREATE SEQUENCE statement for entity.
`String` | `DB2Adapter.createTable(DbEntity ent)` Returns a SQL string that can be used to create database table corresponding to `ent` parameter.
`protected String` | `DB2PkGenerator.dropSequenceString(DbEntity entity)` Returns DROP SEQUENCE statement.
`protected int` | `DB2PkGenerator.pkFromDatabase(DataNode node, DbEntity ent)`
`protected String` | `DB2PkGenerator.sequenceName(DbEntity entity)` Returns default sequence name for DbEntity.

Uses of DbEntity in org.apache.cayenne.dba.derby

Methods in org.apache.cayenne.dba.derby with parameters of type DbEntity
`protected int` | `DerbyPkGenerator.pkFromDatabase(DataNode node, DbEntity entity)`

Uses of DbEntity in org.apache.cayenne.dba.frontbase

Methods in org.apache.cayenne.dba.frontbase with parameters of type DbEntity
`String` | `FrontBaseAdapter.createTable(DbEntity ent)` Customizes table creating procedure for FrontBase.
`String` | `FrontBaseAdapter.dropTable(DbEntity ent)` Adds the CASCADE option to the DROP TABLE clause.
`protected int` | `FrontBasePkGenerator.pkFromDatabase(DataNode node, DbEntity entity)`

Uses of DbEntity in org.apache.cayenne.dba.hsqldb

Methods in org.apache.cayenne.dba.hsqldb with parameters of type DbEntity
`String` | `HSQLDBAdapter.createTable(DbEntity ent)` Uses "CREATE CACHED TABLE" instead of "CREATE TABLE".
`String` | `HSQLDBNoSchemaAdapter.createTable(DbEntity ent)` Uses unqualified entity names.
`String` | `HSQLDBAdapter.createUniqueConstraint(DbEntity source, Collection columns)` Returns a DDL string to create a unique constraint over a set of columns.
`String` | `HSQLDBNoSchemaAdapter.dropTable(DbEntity ent)` Returns a SQL string to drop a table corresponding to `ent` DbEntity.
`protected String` | `HSQLDBAdapter.getSchemaName(DbEntity entity)` Generate fully-qualified name for 1.8 and on.
`protected String` | `HSQLDBNoSchemaAdapter.getSchemaName(DbEntity entity)` Generate unqualified name.
`protected String` | `HSQLDBAdapter.getTableName(DbEntity entity)` Generate fully-qualified name for 1.8 and on.
`protected String` | `HSQLDBNoSchemaAdapter.getTableName(DbEntity entity)` Generate unqualified name without schema.

Uses of DbEntity in org.apache.cayenne.dba.ingres

Methods in org.apache.cayenne.dba.ingres with parameters of type DbEntity
`String` | `IngresAdapter.createTable(DbEntity ent)` Returns a SQL string that can be used to create database table corresponding to `ent` parameter.
`protected int` | `IngresPkGenerator.pkFromDatabase(DataNode node, DbEntity ent)` Generates primary key by calling Oracle sequence corresponding to the `dbEntity`.

Uses of DbEntity in org.apache.cayenne.dba.mysql

Methods in org.apache.cayenne.dba.mysql with parameters of type DbEntity
`String` | `MySQLAdapter.createTable(DbEntity entity)` Overrides super implementation to explicitly set table engine to InnoDB if FK constraints are supported by this adapter.
`protected void` | `MySQLAdapter.createTableAppendPKClause(StringBuffer sqlBuffer, DbEntity entity)` Customizes PK clause semantics to ensure that generated columns are in the beginning of the PK definition, as this seems to be a requirement for InnoDB tables.
`String` | `MySQLAdapter.dropTable(DbEntity entity)`
`protected int` | `MySQLPkGenerator.pkFromDatabase(DataNode node, DbEntity ent)` Overrides superclass's implementation to perform locking of the primary key lookup table.

Uses of DbEntity in org.apache.cayenne.dba.openbase

Methods in org.apache.cayenne.dba.openbase with parameters of type DbEntity
`protected boolean` | `OpenBasePkGenerator.canCreatePK(DbEntity entity)`
`protected String` | `OpenBasePkGenerator.createPKString(DbEntity entity)` Returns a String to create PK support for an entity.
`String` | `OpenBaseAdapter.createTable(DbEntity ent)` Returns a SQL string that can be used to create database table corresponding to `ent` parameter.
`protected String` | `OpenBasePkGenerator.createUniquePKIndexString(DbEntity entity)` Returns a String to create a unique index on table primary key columns per OpenBase recommendations.
`Object` | `OpenBasePkGenerator.generatePkForDbEntity(DataNode node, DbEntity entity)` Returns a non-repeating primary key for a given entity.
`protected String` | `OpenBasePkGenerator.newIDString(DbEntity ent)` Returns SQL string that can generate new (unique and non-repeating) primary key for specified DbEntity.
`protected int` | `OpenBasePkGenerator.pkFromDatabase(DataNode node, DbEntity entity)` Generates new (unique and non-repeating) primary key for specified DbEntity.

Uses of DbEntity in org.apache.cayenne.dba.oracle

Methods in org.apache.cayenne.dba.oracle with parameters of type DbEntity
`protected String` | `OraclePkGenerator.createSequenceString(DbEntity ent)`
`protected String` | `OraclePkGenerator.dropSequenceString(DbEntity ent)` Returns a SQL string needed to drop any database objects associated with automatic primary key generation process for a specific DbEntity.
`String` | `OracleAdapter.dropTable(DbEntity ent)` Returns a query string to drop a table corresponding to `ent` DbEntity.
`protected int` | `OraclePkGenerator.pkCacheSize(DbEntity entity)`
`protected int` | `OraclePkGenerator.pkFromDatabase(DataNode node, DbEntity ent)` Generates primary key by calling Oracle sequence corresponding to the `dbEntity`.
`protected String` | `OraclePkGenerator.sequenceName(DbEntity entity)` Returns expected primary key sequence name for a DbEntity.

Uses of DbEntity in org.apache.cayenne.dba.postgres

Methods in org.apache.cayenne.dba.postgres with parameters of type DbEntity
`protected String` | `PostgresPkGenerator.createSequenceString(DbEntity ent)`
`String` | `PostgresAdapter.createTable(DbEntity ent)` Customizes table creating procedure for PostgreSQL.
`String` | `PostgresAdapter.dropTable(DbEntity ent)` Adds the CASCADE option to the DROP TABLE clause.
`protected int` | `PostgresPkGenerator.pkFromDatabase(DataNode node, DbEntity ent)` Generates primary key by calling Oracle sequence corresponding to the `dbEntity`.

Uses of DbEntity in org.apache.cayenne.dba.sqlite

Methods in org.apache.cayenne.dba.sqlite with parameters of type DbEntity
`String` | `SQLiteAdapter.createUniqueConstraint(DbEntity source, Collection columns)`

Uses of DbEntity in org.apache.cayenne.dba.sybase

Methods in org.apache.cayenne.dba.sybase with parameters of type DbEntity
`protected int` | `SybasePkGenerator.pkFromDatabase(DataNode node, DbEntity ent)`

Uses of DbEntity in org.apache.cayenne.map

Subclasses of DbEntity in org.apache.cayenne.map
`class` | `DerivedDbEntity` Deprecated. since 3.0M2 (scheduled for removal in 3.0M3) this type of mapping is no longer supported.

Fields in org.apache.cayenne.map declared as DbEntity
`protected DbEntity` | `DbKeyGenerator.dbEntity`

Methods in org.apache.cayenne.map that return DbEntity
`protected DbEntity` | `EntityResolver._lookupDbEntity(Object object)` Internal usage only - provides the type-unsafe implementation which services the four typesafe public lookupDbEntity methods Looks in the DataMap's that this object was created with for the ObjEntity that maps to the specified object.
`DbEntity` | `DbKeyGenerator.getDbEntity()`
`DbEntity` | `ObjEntity.getDbEntity()` Returns a DbEntity associated with this ObjEntity.
`DbEntity` | `DataMap.getDbEntity(String dbEntityName)` Returns DbEntity matching the `name` parameter.
`DbEntity` | `EntityResolver.getDbEntity(String name)`
`DbEntity` | `MappingNamespace.getDbEntity(String name)` Returns DbEntity for a given name, or null if no such DbEntity is found in the MappingNamespace.
`DbEntity` | `DerivedDbEntity.getParentEntity()` Deprecated. Returns the parentEntity.
`DbEntity` | `EntityResolver.lookupDbEntity(Class aClass)` Deprecated. since 3.0 - lookup DbEntity via ObjEntity instead.
`DbEntity` | `EntityResolver.lookupDbEntity(Persistent dataObject)` Deprecated. since 3.0 - lookup DbEntity via ObjEntity instead.

Methods in org.apache.cayenne.map with parameters of type DbEntity
`void` | `DataMap.addDbEntity(DbEntity entity)` Adds a new DbEntity to this DataMap.
`protected void` | `AshwoodEntitySorter.fillInMetadata(org.objectstyle.ashwood.dbutil.Table table, DbEntity entity)`
`Collection` | `DataMap.getMappedEntities(DbEntity dbEntity)` Returns all ObjEntities mapped to the given DbEntity.
`protected org.objectstyle.ashwood.dbutil.Table` | `AshwoodEntitySorter.getTable(DbEntity dbEntity)`
`protected boolean` | `AshwoodEntitySorter.isReflexive(DbEntity metadata)`
`void` | `DbKeyGenerator.setDbEntity(DbEntity dbEntity)`
`void` | `ObjEntity.setDbEntity(DbEntity dbEntity)` Sets the DbEntity used by this ObjEntity.
`void` | `DerivedDbEntity.setParentEntity(DbEntity parentEntity)` Deprecated. Sets the parent entity of this derived DbEntity.

Constructors in org.apache.cayenne.map with parameters of type DbEntity
`DbAttribute(String name, int type, DbEntity entity)`
`DerivedDbAttribute(DbEntity entity, DbAttribute parentProto)` Deprecated. Creates and initializes a derived attribute with an attribute of a parent entity.
`DerivedDbAttribute(String name, int type, DbEntity entity, String spec)` Deprecated. Constructor for DerivedDbAttribute.
`DerivedDbEntity(String name, DbEntity parentEntity)` Deprecated. Constructor for DerivedDbEntity.

Uses of DbEntity in org.apache.cayenne.project.validator

Methods in org.apache.cayenne.project.validator with parameters of type DbEntity
`protected void` | `DbEntityValidator.validateAttributes(DbEntity ent, ProjectPath path, Validator validator)` Tables must have columns.
`protected void` | `DbEntityValidator.validateName(DbEntity ent, ProjectPath path, Validator validator)`
`protected void` | `DbEntityValidator.validatePK(DbEntity ent, ProjectPath path, Validator validator)` Validates the presence of the primary key.

Uses of DbEntity in org.apache.cayenne.query

Fields in org.apache.cayenne.query declared as DbEntity
`protected DbEntity` | `BatchQuery.dbEntity`

Methods in org.apache.cayenne.query that return DbEntity
`DbEntity` | `BatchQuery.getDbEntity()` Returns a DbEntity associated with this batch.
`DbEntity` | `QueryMetadata.getDbEntity()` Returns a DbEntity associated with a query or null if no such entity exists.

Constructors in org.apache.cayenne.query with parameters of type DbEntity
`BatchQuery(DbEntity dbEntity)`
`DeleteBatchQuery(DbEntity dbEntity, int batchCapacity)` Creates new DeleteBatchQuery.
`DeleteBatchQuery(DbEntity dbEntity, List qualifierAttributes, Collection nullQualifierNames, int batchCapacity)` Creates new DeleteBatchQuery.
`InsertBatchQuery(DbEntity entity, int batchCapacity)` Creates new InsertBatchQuery for a given DbEntity and estimated capacity.
`SelectQuery(DbEntity root)` Creates a SelectQuery for the specifed DbEntity.
`SelectQuery(DbEntity root, Expression qualifier)` Creates a SelectQuery for the specifed DbEntity with the given qualifier.
`SQLTemplate(DbEntity rootEntity, String defaultTemplate)`
`UpdateBatchQuery(DbEntity dbEntity, List qualifierAttributes, List updatedAttribute, Collection nullQualifierNames, int batchCapacity)` Creates new UpdateBatchQuery.

Uses of DbEntity in org.apache.cayenne.wocompat

Methods in org.apache.cayenne.wocompat with parameters of type DbEntity
`protected void` | `EOModelProcessor.makeReverseDbRelationships(DbEntity dbEntity)` Create reverse DbRelationships that were not created so far, since Cayenne requires them.

Constructors in org.apache.cayenne.wocompat with parameters of type DbEntity
`EODbAttribute(String name, int type, DbEntity entity)`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES

Copyright © 2001-2007 Apache Cayenne. All Rights Reserved.