|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ColumnMetadata
Represents an element in a collection/array.
Method Summary | |
---|---|
Boolean |
getAllowsNull()
Accessor for whether the column allows null. |
String |
getDefaultValue()
Accessor for the default value |
String |
getInsertValue()
Accessor for the insert value (for columns with no field/property) |
String |
getJDBCType()
Accessor for the JDBC Type |
Integer |
getLength()
Accessor for the length |
String |
getName()
Accessor for the name of the column. |
Integer |
getPosition()
Accessor for the position |
Integer |
getScale()
Accessor for the scale |
String |
getSQLType()
Accessor for the SQL Type |
String |
getTarget()
Accessor for the name of the target column. |
String |
getTargetField()
Accessor for the name of the target field. |
ColumnMetadata |
setAllowsNull(boolean nulls)
Method to set whether it allows null. |
ColumnMetadata |
setDefaultValue(String val)
Method to set the default value. |
ColumnMetadata |
setInsertValue(String val)
Method to set the insert value (for columns with no field/property). |
ColumnMetadata |
setJDBCType(String type)
Method to set the JDBC type. |
ColumnMetadata |
setLength(int len)
Method to set the length |
ColumnMetadata |
setName(String name)
Method to set the column name. |
ColumnMetadata |
setPosition(int pos)
Method to set the position |
ColumnMetadata |
setScale(int scale)
Method to set the scale |
ColumnMetadata |
setSQLType(String type)
Method to set the SQL type. |
ColumnMetadata |
setTarget(String target)
Method to set the target column (at the other side of the relation). |
ColumnMetadata |
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 Detail |
---|
ColumnMetadata setName(String name)
name
- Column nameString getName()
ColumnMetadata setTarget(String target)
target
- Target columnString getTarget()
ColumnMetadata setTargetField(String target)
target
- Target fieldString getTargetField()
ColumnMetadata setJDBCType(String type)
type
- JDBC TypeString getJDBCType()
ColumnMetadata setSQLType(String type)
type
- SQL TypeString getSQLType()
ColumnMetadata setLength(int len)
len
- LengthInteger getLength()
ColumnMetadata setScale(int scale)
scale
- scaleInteger getScale()
ColumnMetadata setAllowsNull(boolean nulls)
nulls
- Allows null?Boolean getAllowsNull()
ColumnMetadata setDefaultValue(String val)
val
- Default valueString getDefaultValue()
ColumnMetadata setInsertValue(String val)
val
- Insert valueString getInsertValue()
ColumnMetadata setPosition(int pos)
pos
- PositionInteger getPosition()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |