org.melati.poem
Class StringPoemType
java.lang.Object
org.melati.poem.BasePoemType<T>
org.melati.poem.AtomPoemType
org.melati.poem.SizedAtomPoemType
org.melati.poem.StringPoemType
- All Implemented Interfaces:
- Cloneable, PoemType, SQLPoemType, SQLType
- Direct Known Subclasses:
- MSAccess.MSAccessStringPoemType, MySQL.MySQLStringPoemType, Oracle.OracleStringPoemType, PasswordPoemType
public class StringPoemType
- extends SizedAtomPoemType
Base of all character sequence types.
Constructor Summary |
StringPoemType(boolean nullable,
int size)
Constructor. |
Methods inherited from class org.melati.poem.BasePoemType |
_possibleRaws, assertValidCooked, assertValidRaw, canRepresent, clone, cookedOfRaw, getLimitRaw, getLowRaw, getNullable, getRaw, possibleRaws, quotedRaw, rawOfCooked, rawOfString, saveColumnInfo, setRaw, setRawRange, sqlDefinition, sqlTypeCode, sqlTypeDefinition, stringOfCooked, stringOfRaw, withNullable |
nullableInstance
public static final StringPoemType nullableInstance
- The nullable instance.
StringPoemType
public StringPoemType(boolean nullable,
int size)
- Constructor.
- Parameters:
nullable
- whether nullablesize
- how big
_assertValidRaw
protected void _assertValidRaw(Object raw)
throws ValidationPoemException
- Specified by:
_assertValidRaw
in class BasePoemType
- Throws:
ValidationPoemException
_getRaw
protected Object _getRaw(ResultSet rs,
int col)
throws SQLException
- Specified by:
_getRaw
in class BasePoemType
- Throws:
SQLException
_setRaw
protected void _setRaw(PreparedStatement ps,
int col,
Object string)
throws SQLException
- Specified by:
_setRaw
in class BasePoemType
- Throws:
SQLException
_rawOfString
protected Object _rawOfString(String rawString)
- Description copied from class:
BasePoemType
- Converts a non-null string to an appropriate value
for insertion into the underlying DBMS.
- Specified by:
_rawOfString
in class BasePoemType
_sqlDefinition
protected String _sqlDefinition(Dbms dbms)
- Overrides:
_sqlDefinition
in class AtomPoemType
_canRepresent
protected boolean _canRepresent(SQLPoemType other)
-
- Specified by:
_canRepresent
in class BasePoemType
- See Also:
BasePoemType._canRepresent(org.melati.poem.SQLPoemType)
toString
public String toString()
-
- Overrides:
toString
in class BasePoemType
- See Also:
BasePoemType.toString()
toDsdType
public String toDsdType()
- The field type used in the Data Structure Definition language.
- Returns:
- a dsd type
_saveColumnInfo
protected void _saveColumnInfo(ColumnInfo columnInfo)
throws AccessPoemException
- Specified by:
_saveColumnInfo
in class BasePoemType
- Throws:
AccessPoemException
_quotedRaw
protected String _quotedRaw(Object raw)
- Overrides:
_quotedRaw
in class AtomPoemType
Copyright © 2000-2010 PanEris. All Rights Reserved.