Package javax.jdo.metadata
Interface ColumnMetadata
- All Superinterfaces:
Metadata
Represents an element in a collection/array.
- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptionAccessor for whether the column allows null.Accessor for the default value.Accessor for the insert value (for columns with no field/property)Accessor for the JDBC Type.Accessor for the length.getName()
Accessor for the name of the column.Accessor for the position.getScale()
Accessor for the scale.Accessor for the SQL Type.Accessor for the name of the target column.Accessor for the name of the target field.setAllowsNull
(boolean nulls) Method to set whether it allows null.setDefaultValue
(String val) Method to set the default value.setInsertValue
(String val) Method to set the insert value (for columns with no field/property).setJDBCType
(String type) Method to set the JDBC type.setLength
(int len) Method to set the length.Method to set the column name.setPosition
(int pos) Method to set the position.setScale
(int scale) Method to set the scale.setSQLType
(String type) Method to set the SQL type.Method to set the target column (at the other side of the relation).setTargetField
(String target) Method to set the target field (at the other side of the relation).Methods inherited from interface javax.jdo.metadata.Metadata
getExtensions, getNumberOfExtensions, getParent, newExtensionMetadata
-
Method Details
-
setName
Method to set the column name.- Parameters:
name
- Column name- Returns:
- This metadata object
-
getName
String getName()Accessor for the name of the column.- Returns:
- The name
-
setTarget
Method to set the target column (at the other side of the relation).- Parameters:
target
- Target column- Returns:
- This metadata object
-
getTarget
String getTarget()Accessor for the name of the target column.- Returns:
- Target column name
-
setTargetField
Method to set the target field (at the other side of the relation).- Parameters:
target
- Target field- Returns:
- This metadata object
-
getTargetField
String getTargetField()Accessor for the name of the target field.- Returns:
- Target field name
-
setJDBCType
Method to set the JDBC type.- Parameters:
type
- JDBC Type- Returns:
- This metadata object
-
getJDBCType
String getJDBCType()Accessor for the JDBC Type.- Returns:
- JDBC Type
-
setSQLType
Method to set the SQL type.- Parameters:
type
- SQL Type- Returns:
- This metadata object
-
getSQLType
String getSQLType()Accessor for the SQL Type.- Returns:
- SQL Type
-
setLength
Method to set the length.- Parameters:
len
- Length- Returns:
- This metadata object
-
getLength
Integer getLength()Accessor for the length.- Returns:
- length
-
setScale
Method to set the scale.- Parameters:
scale
- scale- Returns:
- This metadata object
-
getScale
Integer getScale()Accessor for the scale.- Returns:
- scale
-
setAllowsNull
Method to set whether it allows null.- Parameters:
nulls
- Allows null?- Returns:
- This metadata object
-
getAllowsNull
Boolean getAllowsNull()Accessor for whether the column allows null.- Returns:
- Allows null?
-
setDefaultValue
Method to set the default value.- Parameters:
val
- Default value- Returns:
- This metadata object
-
getDefaultValue
String getDefaultValue()Accessor for the default value.- Returns:
- Default value
-
setInsertValue
Method to set the insert value (for columns with no field/property).- Parameters:
val
- Insert value- Returns:
- This metadata object
-
getInsertValue
String getInsertValue()Accessor for the insert value (for columns with no field/property)- Returns:
- Insert value
-
setPosition
Method to set the position.- Parameters:
pos
- Position- Returns:
- This metadata object
-
getPosition
Integer getPosition()Accessor for the position.- Returns:
- position
-