Uses of Class
org.apache.cayenne.map.DbEntity
Package
Description
Contains classes that make up Cayenne ORM stack.
Contains classes that handle JDBC interactions.
Contains database adapter API (DbAdapter) and its default implementation.
IBM DB2 DbAdapter.
Apache Derby DbAdapter.
FrontBase DbAdapter.
HSQLDB DbAdapter.
MySQL DbAdapter.
OpenBase DbAdapter.
Oracle DbAdapter.
PostgreSQL DbAdapter.
MS SQLServer DbAdapter.
Sybase DbAdapter.
Contains O/R mapping classes that store relational database
metadata information and map it to Java classes.
Defines standard queries supported by Cayenne and extension mechanism to create
custom queries.
-
Uses of DbEntity in org.apache.cayenne.access
Modifier and TypeFieldDescriptionDbGenerator.dbEntitiesInInsertOrder
Contains all DbEntities ordered considering their interdependencies.DbGenerator.dbEntitiesRequiringAutoPK
Modifier and TypeMethodDescriptionDbGenerator.createConstraintsQueries
(DbEntity table) Creates FK and UNIQUE constraint statements for a given table.ModifierConstructorDescriptionOptimisticLockException
(ObjectId id, DbEntity rootEntity, String querySQL, Map qualifierSnapshot) ModifierConstructorDescriptionDbGenerator
(DbAdapter adapter, DataMap map, Collection<DbEntity> excludedEntities, DataDomain domain, JdbcEventLogger logger) Creates and initializes new DbGenerator instance.DbGenerator
(DbAdapter adapter, DataMap map, JdbcEventLogger logger, Collection<DbEntity> excludedEntities) -
Uses of DbEntity in org.apache.cayenne.access.flush.operation
ModifierConstructorDescriptionprotected
BaseDbRowOp
(Persistent object, DbEntity entity, ObjectId id) DeleteDbRowOp
(Persistent object, DbEntity entity, ObjectId id) InsertDbRowOp
(Persistent object, DbEntity entity, ObjectId id) UpdateDbRowOp
(Persistent object, DbEntity entity, ObjectId id) -
Uses of DbEntity in org.apache.cayenne.access.jdbc
Modifier and TypeFieldDescriptionprotected DbEntity
SQLTemplateAction.dbEntity
protected DbEntity
DistinctResultIterator.defaultEntity
ModifierConstructorDescriptionDistinctResultIterator
(ResultIterator<T> delegate, DbEntity defaultEntity, boolean compareFullRows) Creates new DistinctResultIterator wrapping another ResultIterator. -
Uses of DbEntity in org.apache.cayenne.access.sqlbuilder
Modifier and TypeMethodDescriptionstatic DeleteBuilder
static InsertBuilder
static TableNodeBuilder
static UpdateBuilder
ModifierConstructorDescriptionDeleteBuilder
(DbEntity table) InsertBuilder
(DbEntity table) UpdateBuilder
(DbEntity table) -
Uses of DbEntity in org.apache.cayenne.access.sqlbuilder.sqltree
-
Uses of DbEntity in org.apache.cayenne.access.translator.ejbql
-
Uses of DbEntity in org.apache.cayenne.access.translator.select
-
Uses of DbEntity in org.apache.cayenne.ashwood
Modifier and TypeFieldDescriptionAshwoodEntitySorter.components
protected Comparator
<DbEntity> AshwoodEntitySorter.dbEntityComparator
WeightedAshwoodEntitySorter.entityWeights
protected Map
<DbEntity, List<DbRelationship>> AshwoodEntitySorter.reflexiveDbEntities
Modifier and TypeMethodDescriptionAshwoodEntitySorter.getDbEntityComparator()
protected Comparator
<DbEntity> AshwoodEntitySorter.getDbEntityComparator
(boolean dependantFirst) protected Comparator
<DbEntity> WeightedAshwoodEntitySorter.getDbEntityComparator
(boolean dependantFirst) Modifier and TypeMethodDescriptionvoid
AshwoodEntitySorter.sortDbEntities
(List<DbEntity> dbEntities, boolean deleteOrder) -
Uses of DbEntity in org.apache.cayenne.configuration
Modifier and TypeMethodDescriptionBaseConfigurationNodeVisitor.visitDbEntity
(DbEntity entity) ConfigurationNodeVisitor.visitDbEntity
(DbEntity entity) EmptyConfigurationNodeVisitor.visitDbEntity
(DbEntity entity) -
Uses of DbEntity in org.apache.cayenne.configuration.xml
ModifierConstructorDescriptionDbKeyGeneratorHandler
(NamespaceAwareNestedTagHandler parentHandler, DbEntity entity) -
Uses of DbEntity in org.apache.cayenne.dba
Modifier and TypeMethodDescriptionAutoAdapter.createTable
(DbEntity entity) DbAdapter.createTable
(DbEntity entity) Returns a SQL string that can be used to create database table corresponding toentity
parameter.JdbcAdapter.createTable
(DbEntity entity) Returns a SQL string that can be used to create database table corresponding toent
parameter.protected void
JdbcAdapter.createTableAppendPKClause
(StringBuffer sqlBuffer, DbEntity entity) AutoAdapter.createUniqueConstraint
(DbEntity source, Collection<DbAttribute> columns) DbAdapter.createUniqueConstraint
(DbEntity source, Collection<DbAttribute> columns) Returns a DDL string to create a unique constraint over a set of columns, or null if the unique constraints are not supported.JdbcAdapter.createUniqueConstraint
(DbEntity source, Collection<DbAttribute> columns) Returns a DDL string to create a unique constraint over a set of columns.AutoAdapter.dropTableStatements
(DbEntity table) DbAdapter.dropTableStatements
(DbEntity table) Returns a collection of SQL statements needed to drop a database table.JdbcAdapter.dropTableStatements
(DbEntity table) protected long
JdbcPkGenerator.longPkFromDatabase
(DataNode node, DbEntity entity) Performs primary key generation ignoring cache.DefaultQuotingStrategy.quotedFullyQualifiedName
(DbEntity entity) QuotingStrategy.quotedFullyQualifiedName
(DbEntity entity) Builds a fully qualified name from catalog, schema, name parts of DbEntity, enclosing them in quotations according to this strategy algorithm.Modifier and TypeMethodDescriptionvoid
JdbcPkGenerator.createAutoPk
(DataNode node, List<DbEntity> dbEntities) void
PkGenerator.createAutoPk
(DataNode node, List<DbEntity> dbEntities) Generates necessary database objects to provide automatic primary key support.JdbcPkGenerator.createAutoPkStatements
(List<DbEntity> dbEntities) PkGenerator.createAutoPkStatements
(List<DbEntity> dbEntities) Returns a list of SQL strings needed to generates database objects to provide automatic primary support for the list of entities.void
JdbcPkGenerator.dropAutoPk
(DataNode node, List<DbEntity> dbEntities) Drops table named "AUTO_PK_SUPPORT" if it exists in the database.void
PkGenerator.dropAutoPk
(DataNode node, List<DbEntity> dbEntities) Drops any common database objects associated with automatic primary key generation process.JdbcPkGenerator.dropAutoPkStatements
(List<DbEntity> dbEntities) PkGenerator.dropAutoPkStatements
(List<DbEntity> dbEntities) Returns SQL string needed to drop database objects associated with automatic primary key generation.protected String
JdbcPkGenerator.pkDeleteString
(List<DbEntity> dbEntities) -
Uses of DbEntity in org.apache.cayenne.dba.db2
Modifier and TypeMethodDescriptionprotected String
DB2PkGenerator.createSequenceString
(DbEntity entity) protected String
DB2PkGenerator.dropSequenceString
(DbEntity entity) protected String
DB2PkGenerator.sequenceName
(DbEntity entity) -
Uses of DbEntity in org.apache.cayenne.dba.derby
Modifier and TypeMethodDescriptionprotected String
DerbyPkGenerator.createSequenceString
(DbEntity entity) protected String
DerbyPkGenerator.dropSequenceString
(DbEntity entity) protected String
DerbyPkGenerator.sequenceName
(DbEntity entity) -
Uses of DbEntity in org.apache.cayenne.dba.frontbase
Modifier and TypeMethodDescriptionFrontBaseAdapter.createTable
(DbEntity ent) Customizes table creating procedure for FrontBase.FrontBaseAdapter.dropTableStatements
(DbEntity table) Adds the CASCADE option to the DROP TABLE clause.protected long
FrontBasePkGenerator.longPkFromDatabase
(DataNode node, DbEntity entity) Modifier and TypeMethodDescriptionvoid
FrontBasePkGenerator.createAutoPk
(DataNode node, List<DbEntity> dbEntities) FrontBasePkGenerator.createAutoPkStatements
(List<DbEntity> dbEntities) void
FrontBasePkGenerator.dropAutoPk
(DataNode node, List<DbEntity> dbEntities) protected String
FrontBasePkGenerator.pkDeleteString
(List<DbEntity> dbEntities) -
Uses of DbEntity in org.apache.cayenne.dba.h2
Modifier and TypeMethodDescriptionprotected String
H2PkGenerator.createSequenceString
(DbEntity ent) -
Uses of DbEntity in org.apache.cayenne.dba.hsqldb
Modifier and TypeMethodDescriptionHSQLDBAdapter.createTable
(DbEntity ent) Uses "CREATE CACHED TABLE" instead of "CREATE TABLE".HSQLDBNoSchemaAdapter.createTable
(DbEntity ent) Uses unqualified entity names.HSQLDBAdapter.createUniqueConstraint
(DbEntity source, Collection<DbAttribute> columns) Returns a DDL string to create a unique constraint over a set of columns.HSQLDBNoSchemaAdapter.dropTableStatements
(DbEntity table) protected String
HSQLDBAdapter.getSchemaName
(DbEntity entity) Returns DbEntity schema name for 1.8 and on.protected String
HSQLDBNoSchemaAdapter.getSchemaName
(DbEntity entity) Returns NULL.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.mysql
Modifier and TypeMethodDescriptionMySQLAdapter.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.MySQLAdapter.dropTableStatements
(DbEntity table) protected long
MySQLPkGenerator.longPkFromDatabase
(DataNode node, DbEntity entity) Overrides superclass's implementation to perform locking of the primary key lookup table. -
Uses of DbEntity in org.apache.cayenne.dba.openbase
Modifier and TypeMethodDescriptionprotected boolean
OpenBasePkGenerator.canCreatePK
(DbEntity entity) Deprecated.protected String
OpenBasePkGenerator.createPKString
(DbEntity entity) Deprecated.Returns a String to create PK support for an entity.OpenBaseAdapter.createTable
(DbEntity ent) Deprecated.Returns a SQL string that can be used to create database table corresponding toent
parameter.protected String
OpenBasePkGenerator.createUniquePKIndexString
(DbEntity entity) Deprecated.Returns a String to create a unique index on table primary key columns per OpenBase recommendations.protected long
OpenBasePkGenerator.longPkFromDatabase
(DataNode node, DbEntity entity) Deprecated.Generates new (unique and non-repeating) primary key for specified DbEntity.protected String
OpenBasePkGenerator.newIDString
(DbEntity ent) Deprecated.Returns SQL string that can generate new (unique and non-repeating) primary key for specified DbEntity.Modifier and TypeMethodDescriptionvoid
OpenBasePkGenerator.createAutoPk
(DataNode node, List<DbEntity> dbEntities) Deprecated.OpenBasePkGenerator.createAutoPkStatements
(List<DbEntity> dbEntities) Deprecated.void
OpenBasePkGenerator.dropAutoPk
(DataNode node, List<DbEntity> dbEntities) Deprecated.OpenBasePkGenerator.dropAutoPkStatements
(List<DbEntity> dbEntities) Deprecated.Returns an empty list, since OpenBase doesn't support this operation. -
Uses of DbEntity in org.apache.cayenne.dba.oracle
Modifier and TypeMethodDescriptionprotected 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.OracleAdapter.dropTableStatements
(DbEntity table) Returns a query string to drop a table corresponding toent
DbEntity.protected long
OraclePkGenerator.longPkFromDatabase
(DataNode node, DbEntity entity) Generates primary key by calling Oracle sequence corresponding to thedbEntity
.protected int
OraclePkGenerator.pkCacheSize
(DbEntity entity) protected String
OraclePkGenerator.sequenceName
(DbEntity entity) Returns expected primary key sequence name for a DbEntity.Modifier and TypeMethodDescriptionvoid
OraclePkGenerator.createAutoPk
(DataNode node, List<DbEntity> dbEntities) OraclePkGenerator.createAutoPkStatements
(List<DbEntity> dbEntities) Creates a list of CREATE SEQUENCE statements for the list of DbEntities.void
OraclePkGenerator.dropAutoPk
(DataNode node, List<DbEntity> dbEntities) Drops PK sequences for all specified DbEntities.OraclePkGenerator.dropAutoPkStatements
(List<DbEntity> dbEntities) Creates a list of DROP SEQUENCE statements for the list of DbEntities. -
Uses of DbEntity in org.apache.cayenne.dba.postgres
Modifier and TypeMethodDescriptionprotected String
PostgresPkGenerator.createSequenceString
(DbEntity ent) PostgresAdapter.createTable
(DbEntity ent) Customizes table creating procedure for PostgreSQL.PostgresAdapter.dropTableStatements
(DbEntity table) Adds the CASCADE option to the DROP TABLE clause. -
Uses of DbEntity in org.apache.cayenne.dba.sqlite
Modifier and TypeMethodDescriptionprotected void
SQLiteAdapter.createTableAppendPKClause
(StringBuffer sqlBuffer, DbEntity entity) SQLiteAdapter.createUniqueConstraint
(DbEntity source, Collection<DbAttribute> columns) -
Uses of DbEntity in org.apache.cayenne.dba.sqlserver
Modifier and TypeMethodDescriptionprotected String
SQLServerPkGenerator.createSequenceString
(DbEntity ent) SQLServerAdapter.createUniqueConstraint
(DbEntity source, Collection<DbAttribute> columns) Generates DDL to create unique index that allows multiple NULL values to comply with ANSI SQL, that is default behaviour for other RDBMS.protected String
SQLServerPkGenerator.guidPkFromDatabase
(DataNode node, DbEntity entity) protected String
SQLServerPkGenerator.sequenceName
(DbEntity entity) Modifier and TypeMethodDescriptionSQLServerPkGenerator.createAutoPkStatements
(List<DbEntity> dbEntities) SQLServerPkGenerator.dropAutoPkStatements
(List<DbEntity> dbEntities) -
Uses of DbEntity in org.apache.cayenne.dba.sybase
Modifier and TypeMethodDescriptionprotected long
SybasePkGenerator.longPkFromDatabase
(DataNode node, DbEntity entity) Modifier and TypeMethodDescriptionvoid
SybasePkGenerator.createAutoPk
(DataNode node, List<DbEntity> dbEntities) Generates database objects to provide automatic primary key support.SybasePkGenerator.createAutoPkStatements
(List<DbEntity> dbEntities) void
SybasePkGenerator.dropAutoPk
(DataNode node, List<DbEntity> dbEntities) Drops database objects related to automatic primary key support.SybasePkGenerator.dropAutoPkStatements
(List<DbEntity> dbEntities) -
Uses of DbEntity in org.apache.cayenne.map
Modifier and TypeMethodDescriptionDataMap.getDbEntity
(String dbEntityName) Returns DbEntity matching thename
parameter.DbKeyGenerator.getDbEntity()
EntityResolver.getDbEntity
(String name) MappingNamespace.getDbEntity
(String name) Returns DbEntity for a given name, or null if no such DbEntity is found in the MappingNamespace.ObjEntity.getDbEntity()
Returns a DbEntity associated with this ObjEntity.DbAttribute.getEntity()
DbRelationship.getSourceEntity()
DbRelationship.getTargetEntity()
Returns a target of this relationship.Modifier and TypeMethodDescriptionDataMap.getDbEntities()
Returns all DbEntities in this DataMap.EntityResolver.getDbEntities()
Returns all DbEntities.MappingNamespace.getDbEntities()
Returns all DbEntities in the namespace.EntitySorter.getDbEntityComparator()
DataMap.getDbEntityMap()
Returns a unmodifiable map of DbEntities contained in this DataMap, keyed by DbEntity name.Modifier and TypeMethodDescriptionvoid
DataMap.addDbEntity
(DbEntity entity) Adds a new DbEntity to this DataMap.DataMap.getMappedEntities
(DbEntity dbEntity) Returns all ObjEntities mapped to the given DbEntity.boolean
EntitySorter.isReflexive
(DbEntity entity) void
DbKeyGenerator.setDbEntity
(DbEntity dbEntity) void
ObjEntity.setDbEntity
(DbEntity dbEntity) Sets the DbEntity used by this ObjEntity.Modifier and TypeMethodDescriptionvoid
EntitySorter.sortDbEntities
(List<DbEntity> dbEntities, boolean deleteOrder) Sorts a list of DbEntities. -
Uses of DbEntity in org.apache.cayenne.query
Modifier and TypeMethodDescriptionBatchQuery.getDbEntity()
Returns a DbEntity associated with this batch.QueryMetadata.getDbEntity()
Returns a DbEntity associated with a query or null if no such entity exists.QueryMetadataProxy.getDbEntity()
ModifierConstructorDescriptionBatchQuery
(DbEntity dbEntity, List<DbAttribute> dbAttributes, int batchCapacity) DeleteBatchQuery
(DbEntity dbEntity, List<DbAttribute> qualifierAttributes, Collection<String> nullQualifierNames, int batchCapacity) Creates new DeleteBatchQuery.InsertBatchQuery
(DbEntity entity, int batchCapacity) Creates new InsertBatchQuery for a given DbEntity and estimated capacity.SelectQuery
(DbEntity root) Deprecated.Creates a SelectQuery for the specified DbEntity.SelectQuery
(DbEntity root, Expression qualifier) Deprecated.Creates a SelectQuery for the specified DbEntity with the given qualifier.SelectQuery
(DbEntity root, Expression qualifier, List<? extends Ordering> orderings) Deprecated.Creates a SelectQuery for the specified DbEntity with the given qualifier and orderings.SQLTemplate
(DbEntity rootEntity, String defaultTemplate) UpdateBatchQuery
(DbEntity dbEntity, List<DbAttribute> qualifierAttributes, List<DbAttribute> updatedAttributes, Collection<String> nullQualifierNames, int batchCapacity) Creates new UpdateBatchQuery. -
Uses of DbEntity in org.apache.cayenne.reflect
Modifier and TypeFieldDescriptionPersistentDescriptor.additionalDbEntities
protected Collection
<DbEntity> PersistentDescriptor.rootDbEntities
Modifier and TypeMethodDescriptionClassDescriptor.getAdditionalDbEntities()
Returns information about additional db entities that is used for this ObjEntity (i.e.LazyClassDescriptorDecorator.getAdditionalDbEntities()
PersistentDescriptor.getAdditionalDbEntities()
ClassDescriptor.getRootDbEntities()
Returns a collection of DbEntities that are the root tables for this descriptor's ObjEntity.LazyClassDescriptorDecorator.getRootDbEntities()
PersistentDescriptor.getRootDbEntities()
Modifier and TypeMethodDescriptionvoid
PersistentDescriptor.addRootDbEntity
(DbEntity dbEntity) Adds a root DbEntity to the list of roots, filtering duplicates.