|
com.im.commons.db 5.9.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.im.commons.db.ddl.DBColInfo
public class DBColInfo
Database info class for a database column. This object is returned from
DBTableInfo.
TODO - reconsider the name of this class.
Logically it should be DBColumnInfoImpl but this causes a clash with the
DBFieldCapability.DBColumn inner class used in DIF.
| Nested Class Summary | |
|---|---|
static class |
DBColInfo.ImplementationType
|
| Field Summary | |
|---|---|
static String |
PROP_CHEMICAL_TERMS_FORMULA
|
static String |
PROP_COLUMN_DEFINITION
|
static String |
PROP_COLUMN_NAME
|
static String |
PROP_DEFAULT_VALUE
|
static String |
PROP_FIELD
|
static String |
PROP_JDBC_TYPE
|
static String |
PROP_LENGTH
|
static String |
PROP_REQUIRED
|
static String |
PROP_SCALE
|
| Constructor Summary | |
|---|---|
DBColInfo()
|
|
DBColInfo(String colName,
DBDatabaseInfo.NativeType type,
boolean required,
String def,
DBColInfo.ImplementationType implementationType)
|
|
| Method Summary | |
|---|---|
void |
addToModel(String parentID,
DBItemsCache cache)
|
boolean |
equals(Object obj)
|
protected void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
Notifies all registered listeners about the event. |
String |
getColumnDefinition()
Get the current column definition for the particular database type. |
String |
getColumnDefinitionMesageFormat()
|
String |
getColumnName()
Getter for property columnName. |
DBDatabaseInfo.ColumnSQLType |
getColumnType()
Returns column type for this DB column. |
String |
getDefaultValue()
Getter for property defaultValue. |
DBColInfo.ImplementationType |
getImplementationType()
|
int |
getJdbcType()
Getter for property jdbcType. |
int |
getLength()
Getter for property length. |
DBDatabaseInfo.NativeType |
getNativeType()
|
String |
getProperty(String key)
|
DBDatabaseInfo.ResizingSupported |
getResizingSupported()
|
int |
getScale()
Getter for property scale. |
int |
hashCode()
|
boolean |
isPropertyReadOnly(String propName)
|
boolean |
isRequired()
NULL or NOT NULL. |
void |
removeFromModel(String parentID,
DBItemsCache cache)
|
DBColInfo |
removeProperty(String key)
Remove a property. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes PropertyChangeListener from the list of listeners. |
void |
setPropertyReadOnly(String propName,
boolean b)
|
String |
toString()
|
DBColInfo |
updateProperties(Map<String,String> nue)
|
DBColInfo |
updateProperty(String key,
String value)
Update or add a property. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PROP_COLUMN_NAME
public static final String PROP_JDBC_TYPE
public static final String PROP_SCALE
public static final String PROP_LENGTH
public static final String PROP_REQUIRED
public static final String PROP_DEFAULT_VALUE
public static final String PROP_COLUMN_DEFINITION
public static final String PROP_FIELD
public static final String PROP_CHEMICAL_TERMS_FORMULA
| Constructor Detail |
|---|
public DBColInfo()
public DBColInfo(String colName,
DBDatabaseInfo.NativeType type,
boolean required,
String def,
DBColInfo.ImplementationType implementationType)
| Method Detail |
|---|
public String getProperty(String key)
public DBColInfo updateProperties(Map<String,String> nue)
public DBColInfo updateProperty(String key,
String value)
key - value -
public DBColInfo removeProperty(String key)
key -
public String getColumnName()
public int getJdbcType()
public DBDatabaseInfo.NativeType getNativeType()
public int getLength()
public DBDatabaseInfo.ColumnSQLType getColumnType()
public int getScale()
public String getColumnDefinition()
public boolean isRequired()
public String getDefaultValue()
public DBColInfo.ImplementationType getImplementationType()
public DBDatabaseInfo.ResizingSupported getResizingSupported()
public String getColumnDefinitionMesageFormat()
public boolean isPropertyReadOnly(String propName)
public final void setPropertyReadOnly(String propName,
boolean b)
public void addToModel(String parentID,
DBItemsCache cache)
addToModel in interface AbstractInfo
public void removeFromModel(String parentID,
DBItemsCache cache)
removeFromModel in interface AbstractInfopublic void removePropertyChangeListener(PropertyChangeListener listener)
listener - The listener to remove.
protected void firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
com.im.commons.db 5.9.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||