|
Produced by Siminov Software Solution LLP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsiminov.orm.model.DatabaseMappingDescriptor.Column
public static class DatabaseMappingDescriptor.Column
Exposes methods to GET and SET Column information as per define in DatabaseMappingDescriptor.si.xml file by application.
Example:
<database-mapping>
<table table_name="LIQUOR" class_name="siminov.orm.template.model.Liquor">
<column variable_name="liquorType" column_name="LIQUOR_TYPE">
<property name="type">TEXT</property>
<property name="primary_key">true</property>
<property name="not_null">true</property>
<property name="unique">true</property>
</column>
</database-mapping>
Constructor Summary | |
---|---|
DatabaseMappingDescriptor.Column()
|
Method Summary | |
---|---|
void |
addProperty(java.lang.String name,
java.lang.String value)
Add Property in property pool. |
boolean |
containProperty(java.lang.String name)
Check whether Property exist or not. |
java.lang.String |
getCheck()
Get check constraint of column. |
java.lang.String |
getColumnName()
Get column name. |
java.lang.String |
getDefaultValue()
Get default value of column. |
java.lang.String |
getGetterMethodName()
Get POJO class column getter method name. |
java.util.Iterator<java.lang.String> |
getProperties()
Get all Properties defined in descriptor. |
java.lang.String |
getProperty(java.lang.String name)
Get Property based on name provided. |
java.lang.String |
getSetterMethodName()
Get POJO class column setter method name. |
java.lang.String |
getType()
Get type of column. |
java.lang.String |
getVariableName()
Get variable name. |
boolean |
isNotNull()
Check whether column value can be not or not. |
boolean |
isPrimaryKey()
Check whether column is primary key. |
boolean |
isUnique()
Check whether column is unique or not. |
void |
removeProperty(java.lang.String name)
Remove Property from property pool. |
void |
setCheck(java.lang.String check)
Set check constraint of column as per defined in DatabaseMapping.core.xml file. |
void |
setColumnName(java.lang.String columnName)
Set column name as per defined in DatabaseMapping.core.xml file. |
void |
setDefaultValue(java.lang.String defaultValue)
Set default value of column as per defined in DatabaseMapping.core.xml file. |
void |
setGetterMethodName(java.lang.String getMethodName)
Set POJO class column getter method name. |
void |
setNotNull(boolean isNotNull)
Set whether column can be null or not. |
void |
setPrimaryKey(boolean primaryKey)
Set column as primary key or not. |
void |
setSetterMethodName(java.lang.String setMethodName)
Set POJO class column setter method name. |
void |
setType(java.lang.String type)
Set type of column as per defined in DatabaseMapping.core.xml file. |
void |
setUnique(boolean isUnique)
Set whether column is unique or not. |
void |
setVariableName(java.lang.String variableName)
Set variable name as per defined in DatabaseMapping.core.xml file. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DatabaseMappingDescriptor.Column()
Method Detail |
---|
public java.lang.String getVariableName()
public void setVariableName(java.lang.String variableName)
variableName
- Name of variable.public java.lang.String getColumnName()
public void setColumnName(java.lang.String columnName)
columnName
- Name of column name.public java.lang.String getType()
public void setType(java.lang.String type)
type
- Type of column.public java.lang.String getGetterMethodName()
public void setGetterMethodName(java.lang.String getMethodName)
getMethodName
- POJO class coumn getter method name.public java.lang.String getSetterMethodName()
public void setSetterMethodName(java.lang.String setMethodName)
setMethodName
- POJO class column setter method name.public java.lang.String getDefaultValue()
public void setDefaultValue(java.lang.String defaultValue)
defaultValue
- Default value of column.public java.lang.String getCheck()
public void setCheck(java.lang.String check)
check
- Check constraint.public boolean isPrimaryKey()
public void setPrimaryKey(boolean primaryKey)
primaryKey
- TRUE: If column is primary key, FALSE: If column is not primary key.public boolean isUnique()
public void setUnique(boolean isUnique)
isUnique
- TRUE: If column is unique, FALSE: If column is not uniquepublic boolean isNotNull()
public void setNotNull(boolean isNotNull)
isNotNull
- TRUE: If column value can be null, FALSE: If column value can not be null.public java.util.Iterator<java.lang.String> getProperties()
public java.lang.String getProperty(java.lang.String name)
name
- Name of Property.
public boolean containProperty(java.lang.String name)
name
- Name of Property.
public void addProperty(java.lang.String name, java.lang.String value)
name
- Name of Property.value
- value of Property.public void removeProperty(java.lang.String name)
name
- Name of Property.
|
Apache License 2.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |