Modifier and Type | Field and Description |
---|---|
protected DbAttribute |
ColumnDescriptor.attribute |
Modifier and Type | Method and Description |
---|---|
DbAttribute |
ColumnDescriptor.getAttribute()
Returns a DbAttribute for this column.
|
Constructor and Description |
---|
ColumnDescriptor(DbAttribute attribute,
String tableAlias)
Creates a ColumnDescriptor from Cayenne DbAttribute.
|
ColumnDescriptor(ObjAttribute objAttribute,
DbAttribute dbAttribute,
String columnAlias) |
Modifier and Type | Method and Description |
---|---|
Filter<DbAttribute> |
EntityFilters.columnFilter() |
Modifier and Type | Method and Description |
---|---|
String |
DefaultJdbc2JavaTypeMapper.getJavaByJdbcType(DbAttribute attribute,
int type)
Get the corresponding Java type by its java.sql.Types counterpart.
|
String |
Jdbc2JavaTypeMapper.getJavaByJdbcType(DbAttribute attribute,
int type) |
int |
DefaultJdbc2JavaTypeMapper.getJdbcTypeByJava(DbAttribute attribute,
String className)
Returns default java.sql.Types type by the Java type name.
|
int |
Jdbc2JavaTypeMapper.getJdbcTypeByJava(DbAttribute attribute,
String className) |
protected int |
DefaultJdbc2JavaTypeMapper.getSqlTypeByJava(DbAttribute attribute,
Class<?> javaClass)
Guesses a default JDBC type for the Java class.
|
Modifier and Type | Method and Description |
---|---|
DbAttribute |
BatchParameterBinding.getAttribute() |
Modifier and Type | Method and Description |
---|---|
protected void |
DefaultBatchTranslator.appendDbAttribute(StringBuilder buf,
DbAttribute dbAttribute)
Appends the name of the column to the query buffer.
|
protected boolean |
InsertBatchTranslator.includeInBatch(DbAttribute attribute)
Returns true if an attribute should be included in the batch.
|
Constructor and Description |
---|
BatchParameterBinding(DbAttribute attribute) |
Modifier and Type | Method and Description |
---|---|
void |
EJBQLSelectColumnsTranslator.appendColumn(String javaType,
String alias,
DbAttribute dbAttribute,
String columnAlias) |
protected void |
EJBQLDbPathTranslator.processTerminatingAttribute(DbAttribute attribute) |
Modifier and Type | Field and Description |
---|---|
protected Map<String,DbAttribute> |
DataObjectMatchTranslator.attributes |
protected List<DbAttribute> |
QueryAssembler.attributes
PreparedStatement attributes matching entries in
values
list. |
Modifier and Type | Method and Description |
---|---|
DbAttribute |
DataObjectMatchTranslator.getAttribute(String key) |
protected DbAttribute |
QueryAssemblerHelper.paramsDbType(Expression e)
Returns database type of expression parameters or null if it can not be
determined.
|
Modifier and Type | Method and Description |
---|---|
void |
QueryAssembler.addToParamList(DbAttribute dbAttr,
Object anObject)
Registers
anObject as a PreparedStatement parameter. |
protected void |
QualifierTranslator.appendLiteral(Object val,
DbAttribute attr,
Expression parentExpression) |
protected void |
QueryAssemblerHelper.appendLiteral(Object val,
DbAttribute attr,
Expression parentExpression)
Appends SQL code to the query buffer to handle
val as a
parameter to the PreparedStatement being built. |
protected void |
QueryAssemblerHelper.appendLiteralDirect(Object val,
DbAttribute attr,
Expression parentExpression)
Appends SQL code to the query buffer to handle
val as a
parameter to the PreparedStatement being built. |
protected void |
QueryAssemblerHelper.processColumn(DbAttribute dbAttr) |
protected void |
TrimmingQualifierTranslator.processColumn(DbAttribute dbAttr)
Adds special handling of CHAR columns.
|
protected void |
QueryAssemblerHelper.processColumnWithQuoteSqlIdentifiers(DbAttribute dbAttr,
Expression pathExp) |
protected void |
TrimmingQualifierTranslator.processColumnWithQuoteSqlIdentifiers(DbAttribute dbAttr,
Expression pathExp)
Adds special handling of CHAR columns.
|
Modifier and Type | Method and Description |
---|---|
T |
BaseConfigurationNodeVisitor.visitDbAttribute(DbAttribute attribute) |
T |
ConfigurationNodeVisitor.visitDbAttribute(DbAttribute attribute) |
Modifier and Type | Method and Description |
---|---|
DbAttribute |
AutoAdapter.buildAttribute(String name,
String typeName,
int type,
int size,
int precision,
boolean allowNulls) |
DbAttribute |
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).
|
DbAttribute |
JdbcAdapter.buildAttribute(String name,
String typeName,
int type,
int size,
int scale,
boolean allowNulls) |
Modifier and Type | Method and Description |
---|---|
void |
AutoAdapter.createTableAppendColumn(StringBuffer sqlBuffer,
DbAttribute column) |
void |
DbAdapter.createTableAppendColumn(StringBuffer sqlBuffer,
DbAttribute column)
Append the column type part of a "create table" to the given
StringBuffer |
void |
JdbcAdapter.createTableAppendColumn(StringBuffer sqlBuffer,
DbAttribute column)
Appends SQL for column creation to CREATE TABLE buffer.
|
Object |
JdbcPkGenerator.generatePk(DataNode node,
DbAttribute pk)
Generates a unique and non-repeating primary key for specified dbEntity.
|
Object |
PkGenerator.generatePk(DataNode dataNode,
DbAttribute pk)
Generates a unique and non-repeating primary key for specified PK attribute.
|
static String |
JdbcAdapter.getType(DbAdapter adapter,
DbAttribute column) |
String |
DefaultQuotingStrategy.quotedName(DbAttribute attribute) |
String |
QuotingStrategy.quotedName(DbAttribute attribute) |
static String |
JdbcAdapter.sizeAndPrecision(DbAdapter adapter,
DbAttribute column) |
Modifier and Type | Method and Description |
---|---|
String |
AutoAdapter.createUniqueConstraint(DbEntity source,
Collection<DbAttribute> columns) |
String |
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.
|
String |
JdbcAdapter.createUniqueConstraint(DbEntity source,
Collection<DbAttribute> columns)
Returns a DDL string to create a unique constraint over a set of columns.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DB2QualifierTranslator.appendLiteralDirect(Object val,
DbAttribute attr,
Expression parentExpression) |
MergerToken |
DB2MergerFactory.createSetColumnTypeToDb(DbEntity entity,
DbAttribute columnOriginal,
DbAttribute columnNew) |
protected void |
DB2QualifierTranslator.processColumnWithQuoteSqlIdentifiers(DbAttribute dbAttr,
Expression pathExp) |
Modifier and Type | Method and Description |
---|---|
MergerToken |
DerbyMergerFactory.createSetAllowNullToDb(DbEntity entity,
DbAttribute column) |
MergerToken |
DerbyMergerFactory.createSetColumnTypeToDb(DbEntity entity,
DbAttribute columnOriginal,
DbAttribute columnNew) |
MergerToken |
DerbyMergerFactory.createSetNotNullToDb(DbEntity entity,
DbAttribute column) |
void |
DerbyAdapter.createTableAppendColumn(StringBuffer sqlBuffer,
DbAttribute column)
Appends SQL for column creation to CREATE TABLE buffer.
|
protected void |
DerbyQualifierTranslator.processColumnWithQuoteSqlIdentifiers(DbAttribute dbAttr,
Expression pathExp) |
Modifier and Type | Method and Description |
---|---|
MergerToken |
FirebirdMergerFactory.createAddColumnToDb(DbEntity entity,
DbAttribute column) |
MergerToken |
FirebirdMergerFactory.createDropColumnToDb(DbEntity entity,
DbAttribute column) |
MergerToken |
FirebirdMergerFactory.createSetAllowNullToDb(DbEntity entity,
DbAttribute column) |
MergerToken |
FirebirdMergerFactory.createSetNotNullToDb(DbEntity entity,
DbAttribute column) |
void |
FirebirdAdapter.createTableAppendColumn(StringBuffer sqlBuffer,
DbAttribute column) |
Modifier and Type | Method and Description |
---|---|
MergerToken |
H2MergerFactory.createSetAllowNullToDb(DbEntity entity,
DbAttribute column) |
MergerToken |
H2MergerFactory.createSetColumnTypeToDb(DbEntity entity,
DbAttribute columnOriginal,
DbAttribute columnNew) |
void |
H2Adapter.createTableAppendColumn(StringBuffer sqlBuffer,
DbAttribute column) |
Modifier and Type | Method and Description |
---|---|
MergerToken |
H2MergerFactory.createSetPrimaryKeyToDb(DbEntity entity,
Collection<DbAttribute> primaryKeyOriginal,
Collection<DbAttribute> primaryKeyNew,
String detectedPrimaryKeyName) |
MergerToken |
H2MergerFactory.createSetPrimaryKeyToDb(DbEntity entity,
Collection<DbAttribute> primaryKeyOriginal,
Collection<DbAttribute> primaryKeyNew,
String detectedPrimaryKeyName) |
Modifier and Type | Method and Description |
---|---|
MergerToken |
HSQLMergerFactory.createSetAllowNullToDb(DbEntity entity,
DbAttribute column) |
MergerToken |
HSQLMergerFactory.createSetColumnTypeToDb(DbEntity entity,
DbAttribute columnOriginal,
DbAttribute columnNew) |
void |
HSQLDBAdapter.createTableAppendColumn(StringBuffer sqlBuffer,
DbAttribute column) |
Modifier and Type | Method and Description |
---|---|
MergerToken |
HSQLMergerFactory.createSetPrimaryKeyToDb(DbEntity entity,
Collection<DbAttribute> primaryKeyOriginal,
Collection<DbAttribute> primaryKeyNew,
String detectedPrimaryKeyName) |
MergerToken |
HSQLMergerFactory.createSetPrimaryKeyToDb(DbEntity entity,
Collection<DbAttribute> primaryKeyOriginal,
Collection<DbAttribute> primaryKeyNew,
String detectedPrimaryKeyName) |
String |
HSQLDBAdapter.createUniqueConstraint(DbEntity source,
Collection<DbAttribute> columns)
Returns a DDL string to create a unique constraint over a set of columns.
|
Modifier and Type | Method and Description |
---|---|
MergerToken |
IngresMergerFactory.createDropColumnToDb(DbEntity entity,
DbAttribute column) |
MergerToken |
IngresMergerFactory.createSetAllowNullToDb(DbEntity entity,
DbAttribute column) |
MergerToken |
IngresMergerFactory.createSetColumnTypeToDb(DbEntity entity,
DbAttribute columnOriginal,
DbAttribute columnNew) |
MergerToken |
IngresMergerFactory.createSetNotNullToDb(DbEntity entity,
DbAttribute column) |
void |
IngresAdapter.createTableAppendColumn(StringBuffer buf,
DbAttribute at) |
Modifier and Type | Method and Description |
---|---|
DbAttribute |
MySQLAdapter.buildAttribute(String name,
String typeName,
int type,
int size,
int precision,
boolean allowNulls) |
Modifier and Type | Method and Description |
---|---|
MergerToken |
MySQLMergerFactory.createSetAllowNullToDb(DbEntity entity,
DbAttribute column) |
MergerToken |
MySQLMergerFactory.createSetColumnTypeToDb(DbEntity entity,
DbAttribute columnOriginal,
DbAttribute columnNew) |
MergerToken |
MySQLMergerFactory.createSetNotNullToDb(DbEntity entity,
DbAttribute column) |
void |
MySQLAdapter.createTableAppendColumn(StringBuffer sqlBuffer,
DbAttribute column)
Appends AUTO_INCREMENT clause to the column definition for generated
columns.
|
Modifier and Type | Method and Description |
---|---|
MergerToken |
MySQLMergerFactory.createSetPrimaryKeyToDb(DbEntity entity,
Collection<DbAttribute> primaryKeyOriginal,
Collection<DbAttribute> primaryKeyNew,
String detectedPrimaryKeyName) |
MergerToken |
MySQLMergerFactory.createSetPrimaryKeyToDb(DbEntity entity,
Collection<DbAttribute> primaryKeyOriginal,
Collection<DbAttribute> primaryKeyNew,
String detectedPrimaryKeyName) |
Modifier and Type | Method and Description |
---|---|
DbAttribute |
OpenBaseAdapter.buildAttribute(String name,
String typeName,
int type,
int size,
int scale,
boolean allowNulls) |
Modifier and Type | Method and Description |
---|---|
protected void |
OpenBaseQualifierTranslator.appendLiteralDirect(Object val,
DbAttribute attr,
Expression parentExpression) |
MergerToken |
OpenBaseMergerFactory.createSetAllowNullToDb(DbEntity entity,
DbAttribute column) |
MergerToken |
OpenBaseMergerFactory.createSetColumnTypeToDb(DbEntity entity,
DbAttribute columnOriginal,
DbAttribute columnNew) |
MergerToken |
OpenBaseMergerFactory.createSetNotNullToDb(DbEntity entity,
DbAttribute column) |
Object |
OpenBasePkGenerator.generatePk(DataNode node,
DbAttribute pk)
Returns a non-repeating primary key for a given PK attribute.
|
Modifier and Type | Method and Description |
---|---|
DbAttribute |
OracleAdapter.buildAttribute(String name,
String typeName,
int type,
int size,
int scale,
boolean allowNulls)
Fixes some reverse engineering problems.
|
Modifier and Type | Method and Description |
---|---|
MergerToken |
OracleMergerFactory.createAddColumnToDb(DbEntity entity,
DbAttribute column) |
MergerToken |
OracleMergerFactory.createSetAllowNullToDb(DbEntity entity,
DbAttribute column) |
MergerToken |
OracleMergerFactory.createSetColumnTypeToDb(DbEntity entity,
DbAttribute columnOriginal,
DbAttribute columnNew) |
MergerToken |
OracleMergerFactory.createSetNotNullToDb(DbEntity entity,
DbAttribute column) |
Modifier and Type | Method and Description |
---|---|
DbAttribute |
PostgresAdapter.buildAttribute(String name,
String typeName,
int type,
int size,
int scale,
boolean allowNulls) |
Modifier and Type | Method and Description |
---|---|
MergerToken |
PostgresMergerFactory.createSetColumnTypeToDb(DbEntity entity,
DbAttribute columnOriginal,
DbAttribute columnNew) |
Modifier and Type | Method and Description |
---|---|
void |
SQLiteAdapter.createTableAppendColumn(StringBuffer sqlBuffer,
DbAttribute column)
Appends AUTOINCREMENT clause to the column definition for generated columns.
|
Modifier and Type | Method and Description |
---|---|
String |
SQLiteAdapter.createUniqueConstraint(DbEntity source,
Collection<DbAttribute> columns) |
Modifier and Type | Method and Description |
---|---|
MergerToken |
SQLServerMergerFactory.createAddColumnToDb(DbEntity entity,
DbAttribute column) |
MergerToken |
SQLServerMergerFactory.createSetAllowNullToDb(DbEntity entity,
DbAttribute column) |
MergerToken |
SQLServerMergerFactory.createSetColumnTypeToDb(DbEntity entity,
DbAttribute columnOriginal,
DbAttribute columnNew) |
MergerToken |
SQLServerMergerFactory.createSetNotNullToDb(DbEntity entity,
DbAttribute column) |
void |
SQLServerAdapter.createTableAppendColumn(StringBuffer sqlBuffer,
DbAttribute column)
Overrides super implementation to correctly set up identity columns.
|
Modifier and Type | Method and Description |
---|---|
MergerToken |
SybaseMergerFactory.createAddColumnToDb(DbEntity entity,
DbAttribute column) |
MergerToken |
SybaseMergerFactory.createDropColumnToDb(DbEntity entity,
DbAttribute column) |
MergerToken |
SybaseMergerFactory.createSetAllowNullToDb(DbEntity entity,
DbAttribute column) |
MergerToken |
SybaseMergerFactory.createSetColumnTypeToDb(DbEntity entity,
DbAttribute columnOriginal,
DbAttribute columnNew) |
MergerToken |
SybaseMergerFactory.createSetNotNullToDb(DbEntity entity,
DbAttribute column) |
Modifier and Type | Method and Description |
---|---|
void |
CommonsJdbcEventLogger.logGeneratedKey(DbAttribute attribute,
Object value) |
void |
JdbcEventLogger.logGeneratedKey(DbAttribute attribute,
Object value) |
void |
NoopJdbcEventLogger.logGeneratedKey(DbAttribute attribute,
Object value) |
Modifier and Type | Method and Description |
---|---|
void |
CommonsJdbcEventLogger.logQuery(String queryStr,
List<DbAttribute> attrs,
List<?> params,
long time) |
void |
FormattedCommonsJdbcEventLogger.logQuery(String queryStr,
List<DbAttribute> attrs,
List<?> params,
long time) |
void |
JdbcEventLogger.logQuery(String sql,
List<DbAttribute> attrs,
List<?> params,
long time) |
void |
NoopJdbcEventLogger.logQuery(String sql,
List<DbAttribute> attrs,
List<?> params,
long time) |
void |
CommonsJdbcEventLogger.logQueryParameters(String label,
List<DbAttribute> attrs,
List<Object> parameters,
boolean isInserting)
Deprecated.
|
void |
JdbcEventLogger.logQueryParameters(String label,
List<DbAttribute> attrs,
List<Object> parameters,
boolean isInserting)
Deprecated.
since 4.0 in favor of
JdbcEventLogger.logQueryParameters(String, BatchParameterBinding[]) |
void |
NoopJdbcEventLogger.logQueryParameters(String label,
List<DbAttribute> attrs,
List<Object> parameters,
boolean isInserting)
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
protected Collection<DbAttribute> |
DbEntity.generatedAttributes |
protected Collection<DbAttribute> |
DbEntity.primaryKey |
Modifier and Type | Method and Description |
---|---|
DbAttribute |
DbEntity.getAttribute(String attributeName) |
DbAttribute |
ObjAttribute.getDbAttribute()
Returns a DbAttribute mapped by this ObjAttribute.
|
DbAttribute |
DbJoin.getSource()
Returns DbAttribute on on the left side of the join.
|
DbAttribute |
DbJoin.getTarget() |
Modifier and Type | Method and Description |
---|---|
Collection<DbAttribute> |
DbEntity.getAttributes()
Returns a Collection of all attributes that either belong to this
DbEntity or inherited.
|
Collection<DbAttribute> |
DbEntity.getGeneratedAttributes()
Returns an unmodifiable collection of DbAttributes that are generated by
the database.
|
Collection<DbAttribute> |
DbEntity.getPrimaryKeys()
Returns an unmodifiable collection of DbAttributes representing the
primary key of the table described by this DbEntity.
|
Collection<DbAttribute> |
DbRelationship.getSourceAttributes()
Returns a Collection of source attributes.
|
Collection<DbAttribute> |
DbRelationship.getTargetAttributes()
Returns a Collection of target attributes.
|
PathComponent<DbAttribute,DbRelationship> |
DbEntity.lastPathComponent(Expression path,
Map aliasMap) |
Iterable<PathComponent<DbAttribute,DbRelationship>> |
DbEntity.resolvePath(Expression pathExp,
Map aliasMap)
Returns an Iterable instance over expression path components based on
this entity.
|
Modifier and Type | Method and Description |
---|---|
void |
DbEntity.addAttribute(DbAttribute attr)
Adds a new attribute to this entity.
|
ObjAttribute |
ObjEntity.getAttributeForDbAttribute(DbAttribute dbAttribute)
Returns ObjAttribute of this entity that maps to
dbAttribute
parameter. |
Modifier and Type | Method and Description |
---|---|
String |
LegacyNameGenerator.createObjAttributeName(DbAttribute attr) |
String |
ObjectNameGenerator.createObjAttributeName(DbAttribute attr)
Creates new name for ObjAttribute
|
Modifier and Type | Method and Description |
---|---|
DbAttribute |
SetColumnTypeToDb.getColumnNew() |
DbAttribute |
SetColumnTypeToModel.getColumnNew() |
DbAttribute |
SetColumnTypeToDb.getColumnOriginal() |
DbAttribute |
SetColumnTypeToModel.getColumnOriginal() |
Modifier and Type | Method and Description |
---|---|
MergerToken |
MergerFactory.createAddColumnToDb(DbEntity entity,
DbAttribute column) |
MergerToken |
MergerFactory.createAddColumnToModel(DbEntity entity,
DbAttribute column) |
MergerToken |
MergerFactory.createDropColumnToDb(DbEntity entity,
DbAttribute column) |
MergerToken |
MergerFactory.createDropColumnToModel(DbEntity entity,
DbAttribute column) |
MergerToken |
MergerFactory.createSetAllowNullToDb(DbEntity entity,
DbAttribute column) |
MergerToken |
MergerFactory.createSetAllowNullToModel(DbEntity entity,
DbAttribute column) |
MergerToken |
MergerFactory.createSetColumnTypeToDb(DbEntity entity,
DbAttribute columnOriginal,
DbAttribute columnNew) |
MergerToken |
MergerFactory.createSetColumnTypeToModel(DbEntity entity,
DbAttribute columnOriginal,
DbAttribute columnNew) |
MergerToken |
MergerFactory.createSetNotNullToDb(DbEntity entity,
DbAttribute column) |
MergerToken |
MergerFactory.createSetNotNullToModel(DbEntity entity,
DbAttribute column) |
MergerToken |
MergerFactory.createSetValueForNullToDb(DbEntity entity,
DbAttribute column,
ValueForNullProvider valueForNullProvider) |
List<String> |
DefaultValueForNullProvider.createSql(DbEntity entity,
DbAttribute column) |
List<String> |
ValueForNullProvider.createSql(DbEntity entity,
DbAttribute column) |
void |
DefaultModelMergeDelegate.dbAttributeAdded(DbAttribute att) |
void |
ModelMergeDelegate.dbAttributeAdded(DbAttribute att) |
void |
ProxyModelMergeDelegate.dbAttributeAdded(DbAttribute att) |
void |
DefaultModelMergeDelegate.dbAttributeModified(DbAttribute att) |
void |
ModelMergeDelegate.dbAttributeModified(DbAttribute att) |
void |
ProxyModelMergeDelegate.dbAttributeModified(DbAttribute att) |
void |
DefaultModelMergeDelegate.dbAttributeRemoved(DbAttribute att) |
void |
ModelMergeDelegate.dbAttributeRemoved(DbAttribute att) |
void |
ProxyModelMergeDelegate.dbAttributeRemoved(DbAttribute att) |
protected ParameterBinding |
DefaultValueForNullProvider.get(DbEntity entity,
DbAttribute column) |
boolean |
DefaultValueForNullProvider.hasValueFor(DbEntity entity,
DbAttribute column) |
boolean |
ValueForNullProvider.hasValueFor(DbEntity entity,
DbAttribute column) |
void |
DefaultValueForNullProvider.set(DbEntity entity,
DbAttribute column,
Object value,
int type) |
Modifier and Type | Method and Description |
---|---|
MergerToken |
MergerFactory.createSetPrimaryKeyToDb(DbEntity entity,
Collection<DbAttribute> primaryKeyOriginal,
Collection<DbAttribute> primaryKeyNew,
String detectedPrimaryKeyName) |
MergerToken |
MergerFactory.createSetPrimaryKeyToDb(DbEntity entity,
Collection<DbAttribute> primaryKeyOriginal,
Collection<DbAttribute> primaryKeyNew,
String detectedPrimaryKeyName) |
MergerToken |
MergerFactory.createSetPrimaryKeyToModel(DbEntity entity,
Collection<DbAttribute> primaryKeyOriginal,
Collection<DbAttribute> primaryKeyNew,
String detectedPrimaryKeyName) |
MergerToken |
MergerFactory.createSetPrimaryKeyToModel(DbEntity entity,
Collection<DbAttribute> primaryKeyOriginal,
Collection<DbAttribute> primaryKeyNew,
String detectedPrimaryKeyName) |
Constructor and Description |
---|
AddColumnToDb(DbEntity entity,
DbAttribute column) |
AddColumnToModel(DbEntity entity,
DbAttribute column) |
DropColumnToDb(DbEntity entity,
DbAttribute column) |
DropColumnToModel(DbEntity entity,
DbAttribute column) |
SetAllowNullToDb(DbEntity entity,
DbAttribute column) |
SetAllowNullToModel(DbEntity entity,
DbAttribute column) |
SetColumnTypeToDb(DbEntity entity,
DbAttribute columnOriginal,
DbAttribute columnNew) |
SetColumnTypeToModel(DbEntity entity,
DbAttribute columnOriginal,
DbAttribute columnNew) |
SetNotNullToDb(DbEntity entity,
DbAttribute column) |
SetNotNullToModel(DbEntity entity,
DbAttribute column) |
SetValueForNullToDb(DbEntity entity,
DbAttribute column,
ValueForNullProvider valueForNullProvider) |
Constructor and Description |
---|
SetPrimaryKeyToDb(DbEntity entity,
Collection<DbAttribute> primaryKeyOriginal,
Collection<DbAttribute> primaryKeyNew,
String detectedPrimaryKeyName) |
SetPrimaryKeyToDb(DbEntity entity,
Collection<DbAttribute> primaryKeyOriginal,
Collection<DbAttribute> primaryKeyNew,
String detectedPrimaryKeyName) |
SetPrimaryKeyToModel(DbEntity entity,
Collection<DbAttribute> primaryKeyOriginal,
Collection<DbAttribute> primaryKeyNew,
String detectedPrimaryKeyName) |
SetPrimaryKeyToModel(DbEntity entity,
Collection<DbAttribute> primaryKeyOriginal,
Collection<DbAttribute> primaryKeyNew,
String detectedPrimaryKeyName) |
Modifier and Type | Field and Description |
---|---|
protected List<DbAttribute> |
BatchQuery.dbAttributes |
Modifier and Type | Method and Description |
---|---|
List<DbAttribute> |
BatchQuery.getDbAttributes()
Returns a list of DbAttributes describing batch parameters.
|
List<DbAttribute> |
UpdateBatchQuery.getDbAttributes() |
List<DbAttribute> |
UpdateBatchQuery.getQualifierAttributes() |
List<DbAttribute> |
UpdateBatchQuery.getUpdatedAttributes() |
Modifier and Type | Method and Description |
---|---|
protected 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.
|
Constructor and Description |
---|
BatchQuery(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.
|
UpdateBatchQuery(DbEntity dbEntity,
List<DbAttribute> qualifierAttributes,
List<DbAttribute> updatedAttributes,
Collection<String> nullQualifierNames,
int batchCapacity)
Creates new UpdateBatchQuery.
|
Modifier and Type | Method and Description |
---|---|
protected List<DbAttribute> |
EntityMergeSupport.getAttributesToAdd(ObjEntity objEntity)
Returns a list of attributes that exist in the DbEntity, but are missing
from the ObjEntity.
|
Collection<DbAttribute> |
EntityMergeSupport.getMeaningfulFKs(ObjEntity objEntity)
Returns a list of DbAttributes that are mapped to foreign keys.
|
Copyright © 2001–2015 Apache Cayenne. All rights reserved.