|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ujac.util.db.AttributeDefinition
public class AttributeDefinition
Name: AttributeDefinition
Description: A class holding the definition of a class attribute.
Constructor Summary | |
---|---|
AttributeDefinition(String name,
String type)
Constructs an AttributeDefinition instance with specific attributes. |
|
AttributeDefinition(String name,
String columnName,
int sqlType,
int columnSize,
int decimalDigits,
boolean primaryKey,
boolean foreignKey,
DataTypeMapper dataTypeMapper)
Constructs an AttributeDefinition instance with specific attributes. |
Method Summary | |
---|---|
String |
getColumnName()
Gets the attribute's column name. |
String |
getFullyQualifiedType()
Getter method for the the property fullyQualifiedType. |
String |
getGetter()
Gets the name of the getter method for the attribute. |
String |
getName()
Gets the current attribute name. |
String |
getPrimitiveType()
Getter method for the the property primitiveType. |
String |
getSetter()
Gets the name of the setter method for the attribute. |
int |
getSqlType()
Gets the attribute's SQL type. |
String |
getSqlTypeName()
Gets the attribute's SQL type name. |
static String |
getSqlTypeName(int sqlType)
Gets the name of the given SQL type |
String |
getType()
Gets the current attribute type. |
boolean |
isForeignKey()
Is the attribute a foreign key? |
boolean |
isPrimaryKey()
Is the attribute a primary key? |
void |
setFullyQualifiedType(String fullyQualifiedType)
Setter method for the the property fullyQualifiedType. |
void |
setPrimitiveType(String primitiveType)
Setter method for the the property primitiveType. |
void |
setType(String type)
Sets the attribute name type. |
String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AttributeDefinition(String name, String type)
name
- The attribute name.type
- The attribute type.public AttributeDefinition(String name, String columnName, int sqlType, int columnSize, int decimalDigits, boolean primaryKey, boolean foreignKey, DataTypeMapper dataTypeMapper)
name
- The attribute name.columnName
- The column name.sqlType
- The sql type.columnSize
- The size of the SQL type.decimalDigits
- The number of decimal digits.primaryKey
- The primary key flag.foreignKey
- The foreign key flag.dataTypeMapper
- The data type mapper.Method Detail |
---|
public String getName()
public String getType()
public void setType(String type)
type
- The new attribute type.public String getFullyQualifiedType()
public void setFullyQualifiedType(String fullyQualifiedType)
fullyQualifiedType
- The value to set for the property fullyQualifiedType.public String getPrimitiveType()
public void setPrimitiveType(String primitiveType)
primitiveType
- The value to set for the property primitiveType.public String getGetter()
public String getSetter()
public String getColumnName()
public int getSqlType()
public String getSqlTypeName()
public boolean isPrimaryKey()
public boolean isForeignKey()
public static final String getSqlTypeName(int sqlType)
sqlType
- The SQL type ID from java.sql.Types.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |