|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.mguennewig.pobjects.metadata.AbstractType
de.mguennewig.pobjects.metadata.ScalarType
de.mguennewig.pobjects.metadata.ClobType
public class ClobType
Character Large Object Type.
| Field Summary |
|---|
| Fields inherited from interface de.mguennewig.pobjects.metadata.Type |
|---|
CLASS_NAME, TYPE_NAME |
| Constructor Summary | |
|---|---|
ClobType()
Creates a new Clob type. |
|
| Method Summary | |
|---|---|
void |
addMap(MapItem item)
Adds a mapping to this type. |
java.lang.String |
formatNative(java.lang.Object value)
Map value from its `native' string representation to its
internal representation based on the type. |
java.lang.Class<?> |
getJavaClass()
Returns the Java class instance that is being used for the values of this type. |
int |
getMaxFieldSize()
Returns the maximum field size required to enter a value of this type. |
java.lang.Object |
getResult(JdbcContainer db,
java.sql.ResultSet rs,
int column)
Reads the value for this type from the result set. |
java.lang.Object |
parseNative(java.lang.String value)
Parse value according to the `native' string representation
of this type. |
void |
setParam(JdbcContainer db,
java.sql.PreparedStatement statm,
int pos,
java.lang.Object value)
Sets the parameter(s) starting at startPos. |
| Methods inherited from class de.mguennewig.pobjects.metadata.ScalarType |
|---|
checkConstraints, checkSyntax, expand, getMap, getResultInc, isScalar, labelToValue, valueToLabel |
| Methods inherited from class de.mguennewig.pobjects.metadata.AbstractType |
|---|
format, getDescription, getTypeClass, name, parse, setDescription, setTypeClass |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClobType()
| Method Detail |
|---|
public void addMap(MapItem item)
addMap in interface TypeaddMap in class ScalarTypejava.lang.UnsupportedOperationException - always as the values of this type
can't be mapped.Type.getJavaClass()public java.lang.Class<?> getJavaClass()
public int getMaxFieldSize()
This is the maximum number of characters required to enter a string representation of all valid values of this type. The typical size of an input field may be much smaller.
getMaxFieldSize in interface TypegetMaxFieldSize in class ScalarType-1public java.lang.String formatNative(java.lang.Object value)
value from its `native' string representation to its
internal representation based on the type.
This mapping is a one-to-one mapping of string values to the type's
value set, without any translation based on MapItems associated
with the type.
For example, an integer type's implementation would accept a value like `1' and translate it to the string `&dblquote;1&dblquote;', independent of any label associated with the value `1'.
The value null is always mapped to the empty string.
formatNative in interface TypeformatNative in class AbstractTypejava.lang.UnsupportedOperationException - always, as a Clob can't be formatedType.getJavaClass()public java.lang.Object parseNative(java.lang.String value)
value according to the `native' string representation
of this type.
This representation is a one-to-one mapping of the type's value set to
strings, without any translation based on MapItems associated with
the type.
For example, an integer type's implementation would accept a value like `"1"' and translate it to an integer object, but would reject a label like `"Yes"' that may be associated with the value `1'.
PObjClob instance representing the string.Type.addMap(MapItem),
Type.parse(String)
public java.lang.Object getResult(JdbcContainer db,
java.sql.ResultSet rs,
int column)
getResult in interface TypegetResult in class ScalarTypeType.getResultInc()
public void setParam(JdbcContainer db,
java.sql.PreparedStatement statm,
int pos,
java.lang.Object value)
throws java.sql.SQLException
startPos.
This method is the counterpart to
Type.getResult(JdbcContainer,ResultSet,int) and
Type.getResultInc().
java.sql.SQLException - if any database error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||