Uses of Class
org.apache.cayenne.map.DbAttribute
Package
Description
Contains classes that handle JDBC interactions.
Contains database adapter API (DbAdapter) and its default implementation.
IBM DB2 DbAdapter.
Apache Derby 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 DbAttribute in org.apache.cayenne.access.flush.operation
Modifier and TypeFieldDescriptionprotected Map
<DbAttribute, Object> Qualifier.additionalQualifier
protected List
<DbAttribute> Values.updatedAttributes
Modifier and TypeMethodDescriptionQualifier.getQualifierAttributes()
Values.getUpdatedAttributes()
Modifier and TypeMethodDescriptionvoid
Qualifier.addAdditionalQualifier
(DbAttribute dbAttribute, Object value) void
Qualifier.addAdditionalQualifier
(DbAttribute dbAttribute, Object value, boolean optimisticLock) void
Values.addValue
(DbAttribute attribute, Object value, boolean fk) -
Uses of DbAttribute in org.apache.cayenne.access.jdbc
Modifier and TypeMethodDescriptionColumnDescriptor.getAttribute()
Returns a DbAttribute for this column.ModifierConstructorDescriptionColumnDescriptor
(DbAttribute attribute, String tableAlias) Creates a ColumnDescriptor from Cayenne DbAttribute.ColumnDescriptor
(ObjAttribute objAttribute, DbAttribute dbAttribute, String columnAlias) -
Uses of DbAttribute in org.apache.cayenne.access.sqlbuilder
Modifier and TypeMethodDescriptionColumnNodeBuilder.attribute
(DbAttribute attribute) ValueNodeBuilder.attribute
(DbAttribute attribute) TableNodeBuilder.column
(DbAttribute attribute) -
Uses of DbAttribute in org.apache.cayenne.access.sqlbuilder.sqltree
ModifierConstructorDescriptionColumnNode
(String table, String column, String alias, DbAttribute attribute) UnescapedColumnNode
(String table, String column, String alias, DbAttribute attribute) ValueNode
(Object value, boolean isArray, DbAttribute attribute) ModifierConstructorDescriptionPerAttributeChildProcessor
(Function<T, DbAttribute> attributeMapper, Function<DbAttribute, ChildProcessor<T>> processorFactory) -
Uses of DbAttribute in org.apache.cayenne.access.translator
-
Uses of DbAttribute in org.apache.cayenne.access.translator.batch
Modifier and TypeMethodDescriptionprotected boolean
InsertBatchTranslator.excludeInBatch
(DbAttribute attribute) protected abstract boolean
BaseBatchTranslator.isNullAttribute
(DbAttribute attribute) protected boolean
DeleteBatchTranslator.isNullAttribute
(DbAttribute attribute) protected boolean
InsertBatchTranslator.isNullAttribute
(DbAttribute attribute) protected boolean
UpdateBatchTranslator.isNullAttribute
(DbAttribute attribute) Modifier and TypeMethodDescriptionprotected ExpressionNodeBuilder
BaseBatchTranslator.buildQualifier
(List<DbAttribute> attributeList) -
Uses of DbAttribute in org.apache.cayenne.access.translator.batch.legacy
Modifier and TypeMethodDescriptionprotected void
DefaultBatchTranslator.appendDbAttribute
(StringBuilder buf, DbAttribute dbAttribute) Deprecated.Appends the name of the column to the query buffer.protected boolean
InsertBatchTranslator.includeInBatch
(DbAttribute attribute) Deprecated.Returns true if an attribute should be included in the batch. -
Uses of DbAttribute in org.apache.cayenne.access.translator.ejbql
Modifier and TypeMethodDescriptionvoid
EJBQLSelectColumnsTranslator.appendColumn
(String javaType, String alias, DbAttribute dbAttribute, String columnAlias) protected void
EJBQLDbPathTranslator.processTerminatingAttribute
(DbAttribute attribute) -
Uses of DbAttribute in org.apache.cayenne.access.translator.select
Modifier and TypeMethodDescriptionprotected DbAttribute
TypeAwareSQLTreeProcessor.getColumnAttribute
(ColumnNode node) protected DbAttribute
TypeAwareSQLTreeProcessor.getValueAttribute
(ValueNode node) Modifier and TypeMethodDescriptionprotected ChildProcessor
<ColumnNode> TypeAwareSQLTreeProcessor.getColumnProcessor
(DbAttribute attr) protected static Optional
<ObjAttribute> TypeAwareSQLTreeProcessor.getObjAttributeFor
(DbAttribute dbAttribute) protected ChildProcessor
<ValueNode> TypeAwareSQLTreeProcessor.getValueProcessor
(DbAttribute attr) -
Uses of DbAttribute in org.apache.cayenne.configuration
Modifier and TypeMethodDescriptionBaseConfigurationNodeVisitor.visitDbAttribute
(DbAttribute attribute) ConfigurationNodeVisitor.visitDbAttribute
(DbAttribute attribute) EmptyConfigurationNodeVisitor.visitDbAttribute
(DbAttribute attribute) -
Uses of DbAttribute in org.apache.cayenne.configuration.xml
-
Uses of DbAttribute in org.apache.cayenne.dba
Modifier and TypeMethodDescriptionAutoAdapter.buildAttribute
(String name, String typeName, int type, int size, int precision, boolean allowNulls) DbAdapter.buildAttribute
(String name, String typeName, int type, int size, int scale, boolean allowNulls) Creates and returns a DbAttribute based on supplied parameters (usually obtained from database meta data).JdbcAdapter.buildAttribute
(String name, String typeName, int type, int size, int scale, boolean allowNulls) Modifier and TypeMethodDescriptionvoid
AutoAdapter.createTableAppendColumn
(StringBuffer sqlBuffer, DbAttribute column) void
DbAdapter.createTableAppendColumn
(StringBuffer sqlBuffer, DbAttribute column) Append the column type part of a "create table" to the givenStringBuffer
void
JdbcAdapter.createTableAppendColumn
(StringBuffer sqlBuffer, DbAttribute column) Appends SQL for column creation to CREATE TABLE buffer.JdbcPkGenerator.generatePk
(DataNode node, DbAttribute pk) Generates a unique and non-repeating primary key for specified dbEntity.PkGenerator.generatePk
(DataNode dataNode, DbAttribute pk) Generates a unique and non-repeating primary key for specified PK attribute.static String
TypesMapping.getJavaBySqlType
(DbAttribute attribute) static String
JdbcAdapter.getType
(DbAdapter adapter, DbAttribute column) DefaultQuotingStrategy.quotedName
(DbAttribute attribute) QuotingStrategy.quotedName
(DbAttribute attribute) static String
JdbcAdapter.sizeAndPrecision
(DbAdapter adapter, DbAttribute column) Modifier and TypeMethodDescriptionAutoAdapter.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. -
Uses of DbAttribute in org.apache.cayenne.dba.db2
Modifier and TypeMethodDescriptionvoid
DB2Adapter.createTableAppendColumn
(StringBuffer sqlBuffer, DbAttribute column) -
Uses of DbAttribute in org.apache.cayenne.dba.derby
Modifier and TypeMethodDescriptionvoid
DerbyAdapter.createTableAppendColumn
(StringBuffer sqlBuffer, DbAttribute column) Appends SQL for column creation to CREATE TABLE buffer. -
Uses of DbAttribute in org.apache.cayenne.dba.derby.sqltree
ModifierConstructorDescriptionDerbyValueNode
(Object value, boolean isArray, DbAttribute attribute) -
Uses of DbAttribute in org.apache.cayenne.dba.firebird
Modifier and TypeMethodDescriptionvoid
FirebirdAdapter.createTableAppendColumn
(StringBuffer sqlBuffer, DbAttribute column) -
Uses of DbAttribute in org.apache.cayenne.dba.h2
Modifier and TypeMethodDescriptionvoid
H2Adapter.createTableAppendColumn
(StringBuffer sqlBuffer, DbAttribute column) -
Uses of DbAttribute in org.apache.cayenne.dba.hsqldb
Modifier and TypeMethodDescriptionvoid
HSQLDBAdapter.createTableAppendColumn
(StringBuffer sqlBuffer, DbAttribute column) Modifier and TypeMethodDescriptionHSQLDBAdapter.createUniqueConstraint
(DbEntity source, Collection<DbAttribute> columns) Returns a DDL string to create a unique constraint over a set of columns. -
Uses of DbAttribute in org.apache.cayenne.dba.ingres
Modifier and TypeMethodDescriptionvoid
IngresAdapter.createTableAppendColumn
(StringBuffer buf, DbAttribute at) -
Uses of DbAttribute in org.apache.cayenne.dba.mysql
Modifier and TypeMethodDescriptionMySQLAdapter.buildAttribute
(String name, String typeName, int type, int size, int precision, boolean allowNulls) Modifier and TypeMethodDescriptionvoid
MySQLAdapter.createTableAppendColumn
(StringBuffer sqlBuffer, DbAttribute column) Appends AUTO_INCREMENT clause to the column definition for generated columns. -
Uses of DbAttribute in org.apache.cayenne.dba.openbase
Modifier and TypeMethodDescriptionOpenBaseAdapter.buildAttribute
(String name, String typeName, int type, int size, int scale, boolean allowNulls) Deprecated.Modifier and TypeMethodDescriptionOpenBasePkGenerator.generatePk
(DataNode node, DbAttribute pk) Deprecated.Returns a non-repeating primary key for a given PK attribute. -
Uses of DbAttribute in org.apache.cayenne.dba.oracle
Modifier and TypeMethodDescriptionOracleAdapter.buildAttribute
(String name, String typeName, int type, int size, int scale, boolean allowNulls) Fixes some reverse engineering problems. -
Uses of DbAttribute in org.apache.cayenne.dba.postgres
Modifier and TypeMethodDescriptionPostgresAdapter.buildAttribute
(String name, String typeName, int type, int size, int scale, boolean allowNulls) -
Uses of DbAttribute in org.apache.cayenne.dba.sqlite
Modifier and TypeMethodDescriptionvoid
SQLiteAdapter.createTableAppendColumn
(StringBuffer sqlBuffer, DbAttribute column) Appends AUTOINCREMENT clause to the column definition for generated columns.Modifier and TypeMethodDescriptionSQLiteAdapter.createUniqueConstraint
(DbEntity source, Collection<DbAttribute> columns) -
Uses of DbAttribute in org.apache.cayenne.dba.sqlserver
Modifier and TypeMethodDescriptionSQLServerAdapter.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. -
Uses of DbAttribute in org.apache.cayenne.dba.sybase
Modifier and TypeMethodDescriptionvoid
SybaseAdapter.createTableAppendColumn
(StringBuffer sqlBuffer, DbAttribute column) Overrides super implementation to correctly set up identity columns. -
Uses of DbAttribute in org.apache.cayenne.log
Modifier and TypeMethodDescriptionvoid
JdbcEventLogger.logGeneratedKey
(DbAttribute attribute, Object value) void
NoopJdbcEventLogger.logGeneratedKey
(DbAttribute attribute, Object value) void
Slf4jJdbcEventLogger.logGeneratedKey
(DbAttribute attribute, Object value) -
Uses of DbAttribute in org.apache.cayenne.map
Modifier and TypeFieldDescriptionprotected Collection
<DbAttribute> DbEntity.generatedAttributes
protected List
<DbAttribute> DbEntity.primaryKey
Modifier and TypeMethodDescriptionDbEntity.getAttribute
(String attributeName) ObjAttribute.getDbAttribute()
Returns a DbAttribute mapped by this ObjAttribute.DbJoin.getSource()
Returns DbAttribute on on the left side of the join.DbJoin.getTarget()
Modifier and TypeMethodDescriptionDbEntity.getAttributes()
Returns a Collection of all attributes that either belong to this DbEntity or inherited.DbEntity.getGeneratedAttributes()
Returns an unmodifiable collection of DbAttributes that are generated by the database.DbEntity.getPrimaryKeys()
Returns an unmodifiable collection of DbAttributes representing the primary key of the table described by this DbEntity.DbRelationship.getSourceAttributes()
Returns a Collection of source attributes.DbRelationship.getTargetAttributes()
Returns a Collection of target attributes.DbEntity.lastPathComponent
(Expression path, Map aliasMap) DbEntity.resolvePath
(Expression pathExp, Map aliasMap) Returns an Iterable instance over expression path components based on this entity.Modifier and TypeMethodDescriptionvoid
DbEntity.addAttribute
(DbAttribute attr) Adds a new attribute to this entity.ObjEntity.getAttributeForDbAttribute
(DbAttribute dbAttribute) Returns ObjAttribute of this entity that maps todbAttribute
parameter. -
Uses of DbAttribute in org.apache.cayenne.query
Modifier and TypeMethodDescriptionBatchQuery.getDbAttributes()
Returns a list of DbAttributes describing batch parameters.UpdateBatchQuery.getDbAttributes()
UpdateBatchQuery.getQualifierAttributes()
UpdateBatchQuery.getUpdatedAttributes()
Modifier and TypeMethodDescriptionprotected Object
BatchQueryRow.getValue
(Map<String, Object> valueMap, DbAttribute attribute) Used by subclasses to resolve deferred values on demand.boolean
DeleteBatchQuery.isNull
(DbAttribute attribute) Returns true if a given attribute always has a null value in the batch.boolean
UpdateBatchQuery.isNull
(DbAttribute attribute) Returns true if a given attribute always has a null value in the batch.ModifierConstructorDescriptionBatchQuery
(DbEntity dbEntity, List<DbAttribute> dbAttributes, int batchCapacity) DeleteBatchQuery
(DbEntity dbEntity, List<DbAttribute> qualifierAttributes, Collection<String> nullQualifierNames, int batchCapacity) Creates new DeleteBatchQuery.UpdateBatchQuery
(DbEntity dbEntity, List<DbAttribute> qualifierAttributes, List<DbAttribute> updatedAttributes, Collection<String> nullQualifierNames, int batchCapacity) Creates new UpdateBatchQuery.