| |
|
| java.lang.Object org.netbeans.lib.ddl.impl.AbstractTableColumn
All known Subclasses: org.netbeans.lib.ddl.impl.ForeignKeyConstraint, org.netbeans.lib.ddl.impl.PrimaryKeyConstraint, org.netbeans.lib.ddl.impl.TableColumn,
AbstractTableColumn | public class AbstractTableColumn implements Serializable(Code) | | Default implementation of database column. It handles name, column name, it's
format and type. If used, column can handle referenced table and column.
User can add custom properties into format.
|
newColumn | boolean newColumn(Code) | | Is this a new column or an existing one
|
newObject | boolean newObject(Code) | | Is this a column for an existing object or one that is being
newly created?
|
serialVersionUID | final static long serialVersionUID(Code) | | |
getColumnName | public String getColumnName()(Code) | | Returns name of column
|
getColumnProperties | public Map getColumnProperties(AbstractCommand cmd) throws DDLException(Code) | | Returns colum properties.
It first copies all custom properties, then sets:
object.name Name of the object
column.name Name of the column
These properties are required; an DDLException will throw if you
forgot to set it up.
fkobject.name Referenced object name
fkcolumn.name Referenced column name
|
getCommand | public String getCommand(AbstractCommand cmd) throws DDLException(Code) | | Returns full string representation of column. This string needs no
additional formatting. Throws DDLException if format is not specified
or CommandFormatter can't format it (it uses MapFormat to process entire
lines and can solve [] enclosed expressions as optional.
|
getFormat | public String getFormat()(Code) | | Returns name of column
|
getObjectName | public String getObjectName()(Code) | | Returns name of object
|
getObjectType | public String getObjectType()(Code) | | Returns type of object
|
getProperty | public Object getProperty(String pname)(Code) | | Returns custom property identified by name
|
getReferencedColumnName | public String getReferencedColumnName()(Code) | | Returns referenced column name
|
getReferencedTableName | public String getReferencedTableName()(Code) | | Returns referenced table
|
isNewColumn | public boolean isNewColumn()(Code) | | |
isNewObject | public boolean isNewObject()(Code) | | |
setColumnName | public void setColumnName(String columnName)(Code) | | Sets name of column
|
setFormat | public void setFormat(String fmt)(Code) | | Sets name of column
|
setNewColumn | public void setNewColumn(boolean newColumn)(Code) | | |
setNewObject | public void setNewObject(boolean newObject)(Code) | | |
setObjectName | public void setObjectName(String oname)(Code) | | Sets name of object
|
setObjectType | public void setObjectType(String type)(Code) | | Sets name of column
|
setProperty | public void setProperty(String pname, Object pval)(Code) | | Sets property identified by name
|
setReferencedColumnName | public void setReferencedColumnName(String col)(Code) | | Sets referenced column name
|
setReferencedTableName | public void setReferencedTableName(String table)(Code) | | Sets referenced table
|
|
|
|