| java.lang.Object com.caucho.amber.type.Type com.caucho.amber.type.ShortType
ShortType | public class ShortType extends Type (Code) | | Represents a java.util.Short type
|
Method Summary | |
public static ShortType | create() Returns the singleton Short type. | public String | generateCreateColumnSQL(AmberPersistenceUnit manager, int length, int precision, int scale) Generates the type for the table. | public String | generateIncrementVersion(String value) Generates the increment version. | public int | generateLoad(JavaWriter out, String rs, String indexVar, int index) Generates a string to load the property. | public void | generateSet(JavaWriter out, String pstmt, String index, String value) Generates a string to set the property. | public void | generateSetNull(JavaWriter out, String pstmt, String index) Generates a string to set the property. | public void | generateSetVersion(JavaWriter out, String pstmt, String index, String value) Generates a string to set the property. | public String | getName() Returns the type name. | public Object | getObject(ResultSet rs, int index) Gets the value. | public boolean | isNumeric() Returns true for a numeric type. | public void | setParameter(PreparedStatement pstmt, int index, Object value) Sets the value. | public Object | toObject(long value) Converts to an object. | public static Short | toShort(int value, boolean wasNull) Converts a value to a int. |
create | public static ShortType create()(Code) | | Returns the singleton Short type.
|
generateCreateColumnSQL | public String generateCreateColumnSQL(AmberPersistenceUnit manager, int length, int precision, int scale)(Code) | | Generates the type for the table.
|
isNumeric | public boolean isNumeric()(Code) | | Returns true for a numeric type.
|
toObject | public Object toObject(long value)(Code) | | Converts to an object.
|
toShort | public static Short toShort(int value, boolean wasNull)(Code) | | Converts a value to a int.
|
Methods inherited from com.caucho.amber.type.Type | public EntityItem findItem(AmberConnection aConn, ResultSet rs, int index) throws SQLException(Code)(Java Doc) public String fromObject(String value)(Code)(Java Doc) public String generateCastFromObject(String value)(Code)(Java Doc) public String generateCreateColumnSQL(AmberPersistenceUnit manager, int length, int precision, int scale)(Code)(Java Doc) public String generateEquals(String a, String b)(Code)(Java Doc) public String generateIncrementVersion(String value) throws IOException(Code)(Java Doc) public String generateIsNull(String value)(Code)(Java Doc) public int generateLoad(JavaWriter out, String rs, String indexVar, int index) throws IOException(Code)(Java Doc) public int generateLoad(JavaWriter out, String rs, String indexVar, int index, JClass targetType) throws IOException(Code)(Java Doc) public int generateLoadForeign(JavaWriter out, String rs, String indexVar, int index) throws IOException(Code)(Java Doc) public String generateNull()(Code)(Java Doc) public void generateSet(JavaWriter out, String pstmt, String index, String value) throws IOException(Code)(Java Doc) public void generateSetNull(JavaWriter out, String pstmt, String index) throws IOException(Code)(Java Doc) public void generateSetVersion(JavaWriter out, String pstmt, String index, String value) throws IOException(Code)(Java Doc) public int getColumnCount()(Code)(Java Doc) public Type getForeignType()(Code)(Java Doc) public String getForeignTypeName()(Code)(Java Doc) public String getJavaTypeName()(Code)(Java Doc) abstract public String getName()(Code)(Java Doc) public Object getObject(ResultSet rs, int index) throws SQLException(Code)(Java Doc) public Object getObject(AmberConnection aConn, ResultSet rs, int index) throws SQLException(Code)(Java Doc) public void init() throws ConfigException(Code)(Java Doc) public boolean isAssignableTo(JClass javaType)(Code)(Java Doc) public boolean isAutoIncrement()(Code)(Java Doc) public boolean isBoolean()(Code)(Java Doc) public boolean isNumeric()(Code)(Java Doc) public void setParameter(PreparedStatement pstmt, int index, Object value) throws SQLException(Code)(Java Doc) public String toObject(String value)(Code)(Java Doc) public Object toObject(long value)(Code)(Java Doc)
|
|
|