com.ibm.websphere.sdo.mediator.jdbc.metadata
Interface Column
-
public interface Column
A Column object describes a column in the database and how it maps to a DataObject Property
-
-
Field Summary
Fields Modifier and Type Field and Description static int
BIGDECIMAL
static int
BLOB
static int
BOOLEAN
static int
BYTE
static int
BYTES
static int
CLOB
static int
DATE
static int
DOUBLE
static int
FLOAT
static int
INTEGER
static int
LONG
static int
OBJECT
static int
SHORT
static int
STRING
static int
TIME
static int
TIMESTAMP
-
Method Summary
Methods Modifier and Type Method and Description java.lang.String
getName()
Returns the value of the Name attributejava.lang.String
getPropertyName()
Returns the value of the Property Name attributeTable
getTable()
Return the 'Table
' object that contains this Columnint
getType()
Returns the type of this Column objectboolean
isNullable()
Returns the value of the Nullable attributevoid
setName(java.lang.String value)
Sets the value of the 'Name
' attributevoid
setNullable(boolean value)
Sets the value of the 'Nullable
' attributevoid
setPropertyName(java.lang.String value)
Sets the value of the 'Property Name
' attributevoid
setTable(Table value)
Sets the value of the 'Table
' container referencevoid
setType(int value)
Sets the value of the 'Type
' attribute
-
-
-
Field Detail
-
INTEGER
static final int INTEGER
- See Also:
- Constant Field Values
-
BOOLEAN
static final int BOOLEAN
- See Also:
- Constant Field Values
-
BYTE
static final int BYTE
- See Also:
- Constant Field Values
-
SHORT
static final int SHORT
- See Also:
- Constant Field Values
-
STRING
static final int STRING
- See Also:
- Constant Field Values
-
DOUBLE
static final int DOUBLE
- See Also:
- Constant Field Values
-
LONG
static final int LONG
- See Also:
- Constant Field Values
-
FLOAT
static final int FLOAT
- See Also:
- Constant Field Values
-
OBJECT
static final int OBJECT
- See Also:
- Constant Field Values
-
BIGDECIMAL
static final int BIGDECIMAL
- See Also:
- Constant Field Values
-
DATE
static final int DATE
- See Also:
- Constant Field Values
-
TIME
static final int TIME
- See Also:
- Constant Field Values
-
TIMESTAMP
static final int TIMESTAMP
- See Also:
- Constant Field Values
-
BLOB
static final int BLOB
- See Also:
- Constant Field Values
-
CLOB
static final int CLOB
- See Also:
- Constant Field Values
-
BYTES
static final int BYTES
- See Also:
- Constant Field Values
-
-
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.- Parameters:
value
- the new value of the 'Property Name' attribute.- See Also:
getPropertyName()
-
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.- Parameters:
value
- the new value of the 'Name' attribute.- See Also:
getName()
-
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.- Parameters:
value
- the new value of the 'Type' attribute.- See Also:
getType()
-
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.- Parameters:
value
- the new value of the 'Nullable' attribute.- See Also:
isNullable()
-
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.- Parameters:
value
- the new value of the 'Table' container reference.- See Also:
getTable()
-
-