org.melati.poem
Class LongPoemType
java.lang.Object
org.melati.poem.BasePoemType<T>
org.melati.poem.AtomPoemType
org.melati.poem.LongPoemType
- All Implemented Interfaces:
- Cloneable, PoemType, SQLPoemType, SQLType
public class LongPoemType
- extends AtomPoemType
Normal longs: INT8
.
Methods inherited from class org.melati.poem.BasePoemType |
assertValidCooked, assertValidRaw, canRepresent, clone, cookedOfRaw, getLimitRaw, getLowRaw, getNullable, getRaw, possibleRaws, quotedRaw, rawOfCooked, rawOfString, saveColumnInfo, setRaw, setRawRange, sqlDefinition, sqlTypeCode, sqlTypeDefinition, stringOfCooked, stringOfRaw, toString, withNullable |
nullableInstance
public static final LongPoemType nullableInstance
- Instance of a nullable LongPoemType.
LongPoemType
public LongPoemType(boolean nullable)
- Constructor.
- Parameters:
nullable
- whether null is an allowed value
LongPoemType
protected LongPoemType(int sqlTypeCode,
String sqlTypeName,
boolean nullable)
_possibleRaws
protected Enumeration _possibleRaws()
- Overrides:
_possibleRaws
in class BasePoemType
- To do something:
- Do down-counting??
_assertValidRaw
protected void _assertValidRaw(Object raw)
- Specified by:
_assertValidRaw
in class BasePoemType
_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 integer)
throws SQLException
- Specified by:
_setRaw
in class BasePoemType
- Throws:
SQLException
_rawOfString
protected Object _rawOfString(String rawString)
throws ParsingPoemException
- 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
- Throws:
ParsingPoemException
_sqlDefinition
protected String _sqlDefinition(Dbms dbms)
- Overrides:
_sqlDefinition
in class AtomPoemType
_canRepresent
protected boolean _canRepresent(SQLPoemType other)
- Longs can represent Integers.
- Specified by:
_canRepresent
in class BasePoemType
- See Also:
BasePoemType._canRepresent(org.melati.poem.SQLPoemType)
toDsdType
public String toDsdType()
- The field type used in the Data Structure Definition language.
- Returns:
- the Type name
- See Also:
PoemType.toDsdType()
_saveColumnInfo
protected void _saveColumnInfo(ColumnInfo columnInfo)
throws AccessPoemException
- Specified by:
_saveColumnInfo
in class BasePoemType
- Throws:
AccessPoemException
Copyright © 2000-2010 PanEris. All Rights Reserved.