|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.amber.type.AmberType
com.caucho.amber.type.CalendarType
public class CalendarType
The type of a property.
| Field Summary | |
|---|---|
static CalendarType |
TEMPORAL_DATE_TYPE
|
static CalendarType |
TEMPORAL_TIME_TYPE
|
static CalendarType |
TEMPORAL_TIMESTAMP_TYPE
|
| Method Summary | |
|---|---|
static CalendarType |
create()
Returns the singleton Calendar type. |
int |
generateLoad(JavaWriter out,
java.lang.String rs,
java.lang.String indexVar,
int index)
Generates a string to load the property. |
int |
generateLoadNative(JavaWriter out,
int index)
Generates a string to load the property. |
void |
generateSet(JavaWriter out,
java.lang.String pstmt,
java.lang.String index,
java.lang.String value)
Generates a string to set the property. |
java.lang.String |
getName()
Returns the type name. |
java.lang.Object |
getObject(java.sql.ResultSet rs,
int index)
Gets the value. |
void |
setParameter(java.sql.PreparedStatement pstmt,
int index,
java.lang.Object value)
Sets the value. |
static java.util.Calendar |
toCalendar(java.util.Date time)
Gets the value. |
| Methods inherited from class com.caucho.amber.type.AmberType |
|---|
findItem, fromObject, generateCastFromObject, generateCreateColumnSQL, generateEquals, generateIncrementVersion, generateIsNull, generateLoad, generateLoadForeign, generateNull, generateSetNull, generateSetVersion, getColumnCount, getForeignType, getForeignTypeName, getJavaTypeName, getObject, init, isAssignableTo, isAutoIncrement, isBoolean, isNumeric, toObject, toObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final CalendarType TEMPORAL_DATE_TYPE
public static final CalendarType TEMPORAL_TIME_TYPE
public static final CalendarType TEMPORAL_TIMESTAMP_TYPE
| Method Detail |
|---|
public static CalendarType create()
public java.lang.String getName()
getName in class AmberType
public int generateLoad(JavaWriter out,
java.lang.String rs,
java.lang.String indexVar,
int index)
throws java.io.IOException
generateLoad in class AmberTypejava.io.IOException
public int generateLoadNative(JavaWriter out,
int index)
throws java.io.IOException
generateLoadNative in class AmberTypejava.io.IOException
public void generateSet(JavaWriter out,
java.lang.String pstmt,
java.lang.String index,
java.lang.String value)
throws java.io.IOException
generateSet in class AmberTypejava.io.IOException
public static java.util.Calendar toCalendar(java.util.Date time)
throws java.sql.SQLException
java.sql.SQLException
public java.lang.Object getObject(java.sql.ResultSet rs,
int index)
throws java.sql.SQLException
getObject in class AmberTypejava.sql.SQLException
public void setParameter(java.sql.PreparedStatement pstmt,
int index,
java.lang.Object value)
throws java.sql.SQLException
setParameter in class AmberTypejava.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||