| java.lang.Object org.jpox.metadata.MetaData org.jpox.metadata.ColumnMetaData
ColumnMetaData | public class ColumnMetaData extends MetaData (Code) | | Representation of the Meta-Data for a column mapping of a field.
JDO metadata represented is :-
<!ELEMENT column (extension*)?>
<!ATTLIST column name CDATA #IMPLIED>
<!ATTLIST column target CDATA #IMPLIED>
<!ATTLIST column target-field CDATA #IMPLIED>
<!ATTLIST column jdbc-type CDATA #IMPLIED>
<!ATTLIST column sql-type CDATA #IMPLIED>
<!ATTLIST column length CDATA #IMPLIED>
<!ATTLIST column scale CDATA #IMPLIED>
<!ATTLIST column allows-null CDATA #IMPLIED>
<!ATTLIST column default-value CDATA #IMPLIED>
<!ATTLIST column insert-value CDATA #IMPLIED>
since: 1.1 version: $Revision: 1.20 $ |
Constructor Summary | |
public | ColumnMetaData(MetaData parent, ColumnMetaData colmd) Creates a ColumnMetaData by copying contents from colmd . | public | ColumnMetaData(MetaData parent, String name) Convenience constructor specifying just the column name, and the parent metadata component. | public | ColumnMetaData(MetaData parent, String name, String target, String targetMember, String jdbcType, String sqlType, String length, String scale, String allowsNull, String defaultValue, String insertValue, String insertable, String updateable, String unique) Constructor. |
allowsNull | protected Boolean allowsNull(Code) | | allows-null tag value.
|
defaultValue | protected String defaultValue(Code) | | column default value (when constructing the table with this column).
|
insertValue | protected String insertValue(Code) | | value to use when inserting this column in the datastore (the column is not mapped to a field/property)
|
insertable | protected boolean insertable(Code) | | Whether this column is to be inserted when the owning object is inserted. JPA 1.0 attribute.
|
jdbcType | protected String jdbcType(Code) | | jdbc-type to use (if any).
|
length | protected Integer length(Code) | | length to use (if any). Also known as precision
|
sqlType | protected String sqlType(Code) | | sql-type to use (if any).
|
targetMember | protected String targetMember(Code) | | target field/property name.
|
unique | protected boolean unique(Code) | | unique tag value. JPA 1.0 attribute.
|
updateable | protected boolean updateable(Code) | | Whether this column can be updated when the owning object is updated. JPA 1.0 attribute.
|
ColumnMetaData | public ColumnMetaData(MetaData parent, ColumnMetaData colmd)(Code) | | Creates a ColumnMetaData by copying contents from colmd .
Parameters: parent - Parent MetaData component Parameters: colmd - MetaData for the column |
ColumnMetaData | public ColumnMetaData(MetaData parent, String name)(Code) | | Convenience constructor specifying just the column name, and the parent metadata component.
Assigns nulls to other parameters.
Parameters: parent - Parent MetaData component Parameters: name - Name of the column |
ColumnMetaData | public ColumnMetaData(MetaData parent, String name, String target, String targetMember, String jdbcType, String sqlType, String length, String scale, String allowsNull, String defaultValue, String insertValue, String insertable, String updateable, String unique)(Code) | | Constructor.
Parameters: parent - parent MetaData instance Parameters: name - field name Parameters: target - target Parameters: targetMember - target field/property Parameters: jdbcType - JDBC Type to use Parameters: sqlType - SQL Type to use Parameters: length - length of field Parameters: scale - scale of field Parameters: allowsNull - Whether nulls are allowed Parameters: defaultValue - The default value for the column Parameters: insertValue - The insert value for the column Parameters: insertable - Whether this column is insertable Parameters: updateable - Whether this column is updateable Parameters: unique - Whether this column is unique |
getDefaultValue | public String getDefaultValue()(Code) | | Accessor for the default value
default value |
getInsertValue | public String getInsertValue()(Code) | | Accessor for the insert value
insert value |
getInsertable | public boolean getInsertable()(Code) | | Accessor for whether this column can be inserted when the owning object is inserted.
Whether it can be inserted. |
getJdbcType | public String getJdbcType()(Code) | | Accessor for the jdbc-type tag value
jdbc-type tag value |
getLength | public Integer getLength()(Code) | | Accessor for the length tag value. Also known as precision
length tag value |
getName | public String getName()(Code) | | Accessor for the name
name |
getScale | public Integer getScale()(Code) | | Accessor for the scale tag value
scale tag value |
getSqlType | public String getSqlType()(Code) | | Accessor for the sql-type tag value
sql-type tag value |
getTarget | public String getTarget()(Code) | | Accessor for the column that is the target of this column in the referenced table.
target tag value |
getTargetMember | public String getTargetMember()(Code) | | Accessor for the field/property that is the target of this column in the referenced class.
field/property that is the target |
getUnique | public boolean getUnique()(Code) | | Accessor for the unique tag value
unique tag value |
getUpdateable | public boolean getUpdateable()(Code) | | Accessor for whether this column can be update when the owning object is updated.
Whether it can be updated. |
isAllowsNull | public boolean isAllowsNull()(Code) | | Accessor for the nulls-allowed tag value
nulls-allowed tag value |
isAllowsNullSet | public boolean isAllowsNullSet()(Code) | | Accessor for whether the nulls allowed flag has been set.
Whether it was set. |
setAllowsNull | final public void setAllowsNull(Boolean allowsNull)(Code) | | Mutator for whether nulls are allowed.
Parameters: allowsNull - The allowsNull to set. |
setJdbcType | final public void setJdbcType(String jdbcType)(Code) | | Mutator for the JDBC type
Parameters: jdbcType - The jdbcType to set. |
setLength | final public void setLength(Integer length)(Code) | | Mutator for the length. Also known as precision
Parameters: length - The length to set. |
setLength | final public void setLength(int length)(Code) | | Mutator for the length. Also known as precision
Parameters: length - The length to set. |
setName | final public void setName(String name)(Code) | | Mutator for the name
Parameters: name - The name to set. |
setScale | final public void setScale(Integer scale)(Code) | | Mutator for the scale
Parameters: scale - The scale to set. |
setScale | final public void setScale(int scale)(Code) | | Mutator for the scale
Parameters: scale - The scale to set. |
setSqlType | final public void setSqlType(String sqlType)(Code) | | Mutator for the SQL type
Parameters: sqlType - The sqlType to set. |
toString | public String toString(String prefix, String indent)(Code) | | Returns a string representation of the object using a prefix
Parameters: prefix - prefix string Parameters: indent - indent string a string representation of the object. |
|
|