public class DbEntityColumnDescriptor
extends java.lang.Object
implements java.lang.Comparable
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
columnName |
protected java.lang.String |
columnNameForQuery |
protected DbEntityDescriptor |
dbEntityDescriptor |
protected int |
dbSqlType |
protected boolean |
isId |
protected java.lang.String |
propertyName |
protected java.lang.Class |
propertyType |
protected java.lang.Class<? extends SqlType> |
sqlTypeClass |
Constructor and Description |
---|
DbEntityColumnDescriptor(DbEntityDescriptor ded,
java.lang.String columnName,
java.lang.String fieldName,
java.lang.Class fieldType,
boolean isId,
java.lang.Class<? extends SqlType> sqlTypeClass) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o)
Compares two column descriptors.
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getColumnName()
Returns column name.
|
java.lang.String |
getColumnNameForQuery()
Returns column name to be used in the generated sql.
|
DbEntityDescriptor |
getDbEntityDescriptor()
Returns
DbEntityDescriptor that this column description belongs to. |
int |
getDbSqlType()
Returns db sql type.
|
java.lang.String |
getPropertyName()
Returns property name.
|
java.lang.Class |
getPropertyType()
Returns property type.
|
java.lang.Class<? extends SqlType> |
getSqlTypeClass()
Returns SqlType or
null for default type. |
int |
hashCode() |
boolean |
isId()
Returns
true if column is ID column. |
java.lang.String |
toString() |
void |
updateDbSqlType(int dbSqlType)
Updates db sql type if not already set.
|
protected final DbEntityDescriptor dbEntityDescriptor
protected final java.lang.String columnName
protected final java.lang.String columnNameForQuery
protected final java.lang.String propertyName
protected final java.lang.Class propertyType
protected final boolean isId
protected final java.lang.Class<? extends SqlType> sqlTypeClass
protected int dbSqlType
public DbEntityColumnDescriptor(DbEntityDescriptor ded, java.lang.String columnName, java.lang.String fieldName, java.lang.Class fieldType, boolean isId, java.lang.Class<? extends SqlType> sqlTypeClass)
public DbEntityDescriptor getDbEntityDescriptor()
DbEntityDescriptor
that this column description belongs to.public java.lang.String getColumnName()
public java.lang.String getColumnNameForQuery()
public java.lang.String getPropertyName()
public java.lang.Class getPropertyType()
public boolean isId()
true
if column is ID column.public java.lang.Class<? extends SqlType> getSqlTypeClass()
null
for default type.public int getDbSqlType()
public void updateDbSqlType(int dbSqlType)
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2003-present Jodd Team