org.mentabean.jdbc
Class FirebirdBeanSession
java.lang.Object
org.mentabean.jdbc.AnsiSQLBeanSession
org.mentabean.jdbc.FirebirdBeanSession
- All Implemented Interfaces:
- BeanSession
public class FirebirdBeanSession
- extends AnsiSQLBeanSession
Firebird support.
- Author:
- soliveira
| Methods inherited from class org.mentabean.jdbc.AnsiSQLBeanSession |
bindToInsertStatement, buildSelect, buildSelect, buildSelect, buildSelect, buildSelectMinus, buildSelectMinus, countList, createPKConstraintQuery, createTable, createTables, debugSql, delete, getConnection, getDatabaseType, getProperties, getValueFromBean, getValueFromBean, injectValue, isSet, load, load, loadImpl, loadList, loadList, loadList, loadList, loadList, loadList, loadList, loadList, loadListMinus, loadListMinus, loadListMinus, loadListMinus, loadMinus, loadUnique, loadUnique, loadUniqueImpl, loadUniqueMinus, populateBean, populateBean, populateBean, populateBean, populateBeanMinus, populateBeanMinus, prepareInsertQuery, update, updateAll |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FirebirdBeanSession
public FirebirdBeanSession(BeanManager beanManager,
Connection conn)
getCurrentTimestampCommand
protected String getCurrentTimestampCommand()
- Description copied from class:
AnsiSQLBeanSession
- Get the command representing 'now' in this database. This base implementation returns null, in other words, no now command will be used.
- Overrides:
getCurrentTimestampCommand in class AnsiSQLBeanSession
- Returns:
- the command for now in this database (now(), sysdate, etc)
handleLimit
protected StringBuilder handleLimit(StringBuilder sb,
OrderBy orderBy,
Limit limit)
- MySQL is not like Oracle. It will SORT everything first and then apply LIMIT.
- Overrides:
handleLimit in class AnsiSQLBeanSession
- Returns:
- A string builder with the the SQL modified for the limit operation
insert
public void insert(Object bean)
- Description copied from interface:
BeanSession
- Insert the bean in the database.
Depending on the type of PK, the generation of the PK can and should be taken care by the DB itself. The generated PK should be inserted in the bean by reflection, before the method returns.
The default, database-independent implementation of this method, insert all fields in the database not worrying about PK generation strategies.
- Specified by:
insert in interface BeanSession- Overrides:
insert in class AnsiSQLBeanSession
- Parameters:
bean - The bean to insert
Copyright © 2012. All Rights Reserved.