com.ibm.websphere.sdo.mediator.jdbc.metadata

Interface Column


  1. public interface Column
A Column object describes a column in the database and how it maps to a DataObject Property

Field Summary

Modifier and Type Field and Description
  1. static
  2. int
BIGDECIMAL
  1. static
  2. int
BLOB
  1. static
  2. int
BOOLEAN
  1. static
  2. int
BYTE
  1. static
  2. int
BYTES
  1. static
  2. int
CLOB
  1. static
  2. int
DATE
  1. static
  2. int
DOUBLE
  1. static
  2. int
FLOAT
  1. static
  2. int
INTEGER
  1. static
  2. int
LONG
  1. static
  2. int
OBJECT
  1. static
  2. int
SHORT
  1. static
  2. int
STRING
  1. static
  2. int
TIME
  1. static
  2. int
TIMESTAMP

Method Summary

Modifier and Type Method and Description
  1. java.lang.String
getName()
Returns the value of the Name attribute
  1. java.lang.String
getPropertyName()
Returns the value of the Property Name attribute
  1. Table
getTable()
Return the ' Table' object that contains this Column
  1. int
getType()
Returns the type of this Column object
  1. boolean
isNullable()
Returns the value of the Nullable attribute
  1. void
setName(java.lang.String value)
Sets the value of the ' Name' attribute
  1. void
setNullable(boolean value)
Sets the value of the ' Nullable' attribute
  1. void
setPropertyName(java.lang.String value)
Sets the value of the ' Property Name' attribute
  1. void
setTable(Table value)
Sets the value of the ' Table' container reference
  1. void
setType(int value)
Sets the value of the ' Type' attribute

Field Detail

INTEGER

  1. static final int INTEGER
See Also:

BOOLEAN

  1. static final int BOOLEAN
See Also:

BYTE

  1. static final int BYTE
See Also:

SHORT

  1. static final int SHORT
See Also:

STRING

  1. static final int STRING
See Also:

DOUBLE

  1. static final int DOUBLE
See Also:

LONG

  1. static final int LONG
See Also:

FLOAT

  1. static final int FLOAT
See Also:

OBJECT

  1. static final int OBJECT
See Also:

BIGDECIMAL

  1. static final int BIGDECIMAL
See Also:

DATE

  1. static final int DATE
See Also:

TIME

  1. static final int TIME
See Also:

TIMESTAMP

  1. static final int TIMESTAMP
See Also:

BLOB

  1. static final int BLOB
See Also:

CLOB

  1. static final int CLOB
See Also:

BYTES

  1. static final int BYTES
See Also:

Method Detail

getPropertyName

  1. 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

  1. 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:

getName

  1. 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

  1. void setName(java.lang.String value)
Sets the value of the ' Name' attribute.
Parameters:
value - the new value of the 'Name' attribute.
See Also:

getType

  1. 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

  1. void setType(int value)
Sets the value of the ' Type' attribute.
Parameters:
value - the new value of the 'Type' attribute.
See Also:

isNullable

  1. 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

  1. void setNullable(boolean value)
Sets the value of the ' Nullable' attribute.
Parameters:
value - the new value of the 'Nullable' attribute.
See Also:

getTable

  1. Table getTable()
Return the ' Table' object that contains this Column.
Returns:
the containing table

setTable

  1. void setTable(Table value)
Sets the value of the ' Table' container reference.
Parameters:
value - the new value of the 'Table' container reference.
See Also: