|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.db.orm.DbEntityColumnDescriptor
public class DbEntityColumnDescriptor
Column descriptors.
| Field Summary | |
|---|---|
protected java.lang.String |
columnName
|
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 Summary | |
|---|---|
DbEntityColumnDescriptor(DbEntityDescriptor ded,
java.lang.String columnName,
java.lang.String fieldName,
java.lang.Class fieldType,
boolean isId,
java.lang.Class<? extends SqlType> sqlTypeClass)
|
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object o)
Compares two column descriptors. |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getColumnName()
Returns column name. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final DbEntityDescriptor dbEntityDescriptor
protected final java.lang.String columnName
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
| Constructor Detail |
|---|
public DbEntityColumnDescriptor(DbEntityDescriptor ded,
java.lang.String columnName,
java.lang.String fieldName,
java.lang.Class fieldType,
boolean isId,
java.lang.Class<? extends SqlType> sqlTypeClass)
| Method Detail |
|---|
public DbEntityDescriptor getDbEntityDescriptor()
DbEntityDescriptor that this column description belongs to.
public java.lang.String getColumnName()
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.Comparablepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||