com.ibm.websphere.sdo.mediator.jdbc.metadata
Interface Column
- public interface Column
Field Summary
Modifier and Type | Field and Description |
---|---|
|
BIGDECIMAL
|
|
BLOB
|
|
BOOLEAN
|
|
BYTE
|
|
BYTES
|
|
CLOB
|
|
DATE
|
|
DOUBLE
|
|
FLOAT
|
|
INTEGER
|
|
LONG
|
|
OBJECT
|
|
SHORT
|
|
STRING
|
|
TIME
|
|
TIMESTAMP
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getName()
Returns the value of the Name attribute
|
|
getPropertyName()
Returns the value of the Property Name attribute
|
getTable()
Return the '
Table ' object that contains this Column
|
|
|
getType()
Returns the type of this Column object
|
|
isNullable()
Returns the value of the Nullable attribute
|
|
setName(java.lang.String value)
Sets the value of the '
Name ' attribute
|
|
setNullable(boolean value)
Sets the value of the '
Nullable ' attribute
|
|
setPropertyName(java.lang.String value)
Sets the value of the '
Property Name ' attribute
|
|
setTable(Table value)
Sets the value of the '
Table ' container reference
|
|
setType(int value)
Sets the value of the '
Type ' attribute
|
Field Detail
INTEGER
- static final int INTEGER
See Also:
BOOLEAN
- static final int BOOLEAN
See Also:
BYTE
- static final int BYTE
See Also:
SHORT
- static final int SHORT
See Also:
STRING
- static final int STRING
See Also:
DOUBLE
- static final int DOUBLE
See Also:
LONG
- static final int LONG
See Also:
FLOAT
- static final int FLOAT
See Also:
OBJECT
- static final int OBJECT
See Also:
BIGDECIMAL
- static final int BIGDECIMAL
See Also:
DATE
- static final int DATE
See Also:
TIME
- static final int TIME
See Also:
TIMESTAMP
- static final int TIMESTAMP
See Also:
BLOB
- static final int BLOB
See Also:
CLOB
- static final int CLOB
See Also:
BYTES
- static final int BYTES
See Also:
Method Detail
getPropertyName
- java.lang.String getPropertyName( )
Returns the value of the Property Name attribute.
This value will be used to identify this Column in a DataObject. If the value
is not specified, it defaults to the value of getName().
Returns:
the property name
setPropertyName
- void setPropertyName(java.lang.String value)
Sets the value of the '
Property Name
' attribute.
getName
- java.lang.String getName()
Returns the value of the Name attribute.
This must be the same as the name of the database column.
Returns:
the name
setName
- void setName(java.lang.String value)
Sets the value of the '
Name
' attribute.
getType
- int getType()
Returns the type of this Column object.
This defines how the database column will
be accessed through JDBC. This may or may not be the same as the database column
type. For example, given a column defined in the database as an INTEGER, you
may want to access the value in a DataGraph as a boolean value. In this case, you
would define the type as Column.BOOLEAN, and the JDBC data mediator service would
access the data using ResultSet.getBoolean(). In cases like this, clients should
consult the documentation for the JDBC driver being used to determine that the
mapping that takes place is what is desired.
Returns:
the type
setType
- void setType(int value)
Sets the value of the '
Type
' attribute.
isNullable
- boolean isNullable()
Returns the value of the Nullable attribute.
If Nullable is false, a primitive
type will be used to represent this Column in the DataGraph.
Returns:
the value of the Nullable attribute
setNullable
- void setNullable(boolean value)
Sets the value of the '
Nullable
' attribute.
getTable
- Table getTable()
Return the '
Table
' object that contains this Column.
Returns:
the containing table
setTable
- void setTable(Table value)
Sets the value of the '
Table
' container reference.