public class ColumnDescriptor extends Object
Modifier and Type | Field and Description |
---|---|
protected DbAttribute |
attribute |
protected String |
dataRowKey |
protected boolean |
isExpression |
protected String |
javaClass |
protected int |
jdbcType |
protected String |
name |
protected String |
namePrefix |
protected String |
procedureName |
protected String |
tableName |
Constructor and Description |
---|
ColumnDescriptor()
Creates a ColumnDescriptor
|
ColumnDescriptor(DbAttribute attribute,
String tableAlias)
Creates a ColumnDescriptor from Cayenne DbAttribute.
|
ColumnDescriptor(ObjAttribute objAttribute,
DbAttribute dbAttribute,
String columnAlias) |
ColumnDescriptor(ProcedureParameter parameter)
Creates a ColumnDescriptor from stored procedure parameter.
|
ColumnDescriptor(ResultSetMetaData metaData,
int position)
Creates a ColumnDescriptor using ResultSetMetaData.
|
ColumnDescriptor(String columnName,
int jdbcType)
Creates a column descriptor with user-specified parameters.
|
ColumnDescriptor(String columnName,
int jdbcType,
String javaClass) |
ColumnDescriptor(String columnName,
ResultSetMetaData metaData,
int position)
Creates a ColumnDescriptor using ResultSetMetaData.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Returns true if another object is a ColumnDescriptor with the same name,
name prefix, table and procedure names.
|
DbAttribute |
getAttribute()
Returns a DbAttribute for this column.
|
String |
getDataRowKey() |
String |
getJavaClass() |
int |
getJdbcType() |
String |
getName()
Returns column name.
|
String |
getNamePrefix() |
String |
getProcedureName()
Returns the name of the parent stored procedure.
|
String |
getQualifiedColumnName()
Returns "qualifiedColumnName" property.
|
String |
getTableName()
Returns the name of the parent table.
|
int |
hashCode() |
boolean |
isExpression() |
void |
setDataRowKey(String dataRowKey) |
void |
setIsExpression(boolean isExpression) |
void |
setJavaClass(String string) |
void |
setJdbcType(int i) |
void |
setName(String name) |
void |
setProcedureName(String procedureName) |
void |
setTableName(String tableName) |
String |
toString() |
protected DbAttribute attribute
protected String tableName
protected String procedureName
protected String name
protected String namePrefix
protected String dataRowKey
protected int jdbcType
protected String javaClass
protected boolean isExpression
public ColumnDescriptor()
public ColumnDescriptor(String columnName, int jdbcType)
public ColumnDescriptor(String columnName, int jdbcType, String javaClass)
public ColumnDescriptor(DbAttribute attribute, String tableAlias)
public ColumnDescriptor(ObjAttribute objAttribute, DbAttribute dbAttribute, String columnAlias)
public ColumnDescriptor(ProcedureParameter parameter)
public ColumnDescriptor(String columnName, ResultSetMetaData metaData, int position) throws SQLException
SQLException
public ColumnDescriptor(ResultSetMetaData metaData, int position) throws SQLException
SQLException
public DbAttribute getAttribute()
public boolean equals(Object o)
public String getQualifiedColumnName()
public int getJdbcType()
public String getName()
public String getNamePrefix()
public void setJdbcType(int i)
public void setName(String name)
public String getJavaClass()
public void setJavaClass(String string)
public String getTableName()
public void setTableName(String tableName)
public String getProcedureName()
public void setProcedureName(String procedureName)
public String getDataRowKey()
public void setDataRowKey(String dataRowKey)
public void setIsExpression(boolean isExpression)
isExpression
- is this column is an expressionpublic boolean isExpression()
Copyright © 2001–2018 Apache Cayenne. All rights reserved.