|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.objectweb.jorm.mapper.rdb.adapter.BasicRdbAdapter
|
+--org.objectweb.jorm.mapper.rdb.adapter.MysqlAdapter
MySql 4.0.12
| Field Summary | |
int |
varbinarySize
|
int |
varbinarySizeInPk
|
| Constructor Summary | |
MysqlAdapter()
|
|
| Method Summary | |
int |
fetchResultSetSize(java.sql.ResultSet rs)
This calculates the size of a result set. |
java.lang.String |
getIndexedLocateExpression(java.lang.String instring,
java.lang.String substring,
java.lang.String fromIndex)
Returns the expression for searching the position of the first occurrence of a substring in a string starting from a given index. |
java.lang.String |
getSqlGetterName(PType pt,
java.lang.String resultSet,
int idx,
java.lang.String sql)
This method returns the sql getter method associated to the PType specified in parameter. |
java.lang.String |
getSqlSetterName(PType pt,
java.lang.String value,
int idx,
java.lang.String sqlColumnType)
This method returns the sql setter method associated to the PType specified in parameter. |
java.lang.String |
getSqlType(PType pt,
boolean usedInPK,
int size)
This method returns the SQL type linked to the PType specified in parameter. |
int |
getSqlTypeCode(PType pt,
java.lang.String sqlColumnType)
This methods return the SQL type code linked to the PType specified in parameter. |
void |
setDate(java.sql.PreparedStatement ps,
int idx,
java.util.Date o,
java.lang.String columnType)
|
void |
setVarcharSize(int s)
|
void |
setVarcharSizeInPk(int s)
|
boolean |
supportBatchPreparedStatement()
Indicates if the driver supports the batch of PreparedStatement |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public int varbinarySize
public int varbinarySizeInPk
| Constructor Detail |
public MysqlAdapter()
| Method Detail |
public boolean supportBatchPreparedStatement()
RdbAdapter
supportBatchPreparedStatement in interface RdbAdaptersupportBatchPreparedStatement in class BasicRdbAdapter
public int fetchResultSetSize(java.sql.ResultSet rs)
throws java.sql.SQLException
fetchResultSetSize in interface RdbAdapterfetchResultSetSize in class BasicRdbAdapterrs - the result set which the size must be returned
java.sql.SQLExceptionpublic void setVarcharSize(int s)
public void setVarcharSizeInPk(int s)
public java.lang.String getSqlType(PType pt,
boolean usedInPK,
int size)
throws PExceptionProtocol
RdbAdapter
getSqlType in interface RdbAdaptergetSqlType in class BasicRdbAdapterPExceptionProtocol
public int getSqlTypeCode(PType pt,
java.lang.String sqlColumnType)
throws PExceptionProtocol
BasicRdbAdapter
getSqlTypeCode in interface RdbAdaptergetSqlTypeCode in class BasicRdbAdapterPExceptionProtocol
public java.lang.String getSqlGetterName(PType pt,
java.lang.String resultSet,
int idx,
java.lang.String sql)
throws PExceptionProtocol
RdbAdapter
getSqlGetterName in interface RdbAdaptergetSqlGetterName in class BasicRdbAdapterPExceptionProtocol
public java.lang.String getSqlSetterName(PType pt,
java.lang.String value,
int idx,
java.lang.String sqlColumnType)
throws PExceptionProtocol
RdbAdapter
getSqlSetterName in interface RdbAdaptergetSqlSetterName in class BasicRdbAdapterPExceptionProtocol
public java.lang.String getIndexedLocateExpression(java.lang.String instring,
java.lang.String substring,
java.lang.String fromIndex)
RdbAdapterTwo main syntaxes are found: instr() and locate()
getIndexedLocateExpression in interface RdbAdaptergetIndexedLocateExpression in class BasicRdbAdapterinstring - The string in which to search the substringsubstring - The substring searchedfromIndex - The index from which to start searching
public void setDate(java.sql.PreparedStatement ps,
int idx,
java.util.Date o,
java.lang.String columnType)
throws java.sql.SQLException
setDate in interface RdbAdaptersetDate in class BasicRdbAdapterjava.sql.SQLException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||