| java.lang.Object hu.netmind.persistence.GenericDatabase hu.netmind.persistence.DerbyDatabaseImpl
DerbyDatabaseImpl | public class DerbyDatabaseImpl extends GenericDatabase (Code) | | Derby database implementation.
Note: Implementation is not finished, do not use! Major problem:
can not test, because can not handle shutdown-restart. Another
problem is, that it can not support limit-offset construct.
author: Brautigam Robert version: CVS Revision: $Revision$ |
dropColumn | protected DatabaseStatistics dropColumn(Connection connection, String tableName, String columnName)(Code) | | Drop a column from a table. Derby does not drop the column if
there are indexes to it, so first remove the indexes in question.
Parameters: connection - The connection object. Parameters: tableName - The table to drop column from. Parameters: columnName - The column to drop. |
getJavaValue | protected Object getJavaValue(Object value, int type, Class javaType)(Code) | | Convert incoming value from database into java format.
|
getSQLTypeName | protected String getSQLTypeName(int sqltype)(Code) | | Get the class for an sql type.
|
getSQLValue | protected Object getSQLValue(Object value)(Code) | | Throw exception when String is longer than Oracle can handle.
|
getTableAttributeType | protected int getTableAttributeType(ResultSet rs) throws SQLException(Code) | | Fix custom data types not supported by database.
|
getTableAttributeTypes | protected HashMap getTableAttributeTypes(Connection connection, String tableName) throws SQLException(Code) | | Get the data types of a given table.
A map of names with the sql type number as value. |
transformExpression | protected Expression transformExpression(Expression expr)(Code) | | Transform 'ilike' to upper case like.
Parameters: expr - The expression to possibly transform. A transformed expression. |
Methods inherited from hu.netmind.persistence.GenericDatabase | protected DatabaseStatistics addColumn(Connection connection, String tableName, String columnName, String columnType)(Code)(Java Doc) protected DatabaseStatistics alterTable(Connection connection, String tableName, List removedAttributes, List addedAttributes, Map attributeTypes, List keyAttributeNames)(Code)(Java Doc) protected DatabaseStatistics createIndexes(Connection connection, String tableName, Map attributeTypes)(Code)(Java Doc) protected DatabaseStatistics createTable(Connection connection, String tableName, Map attributeTypes, List keyAttributeNames)(Code)(Java Doc) protected DatabaseStatistics dropColumn(Connection connection, String tableName, String columnName)(Code)(Java Doc) protected DatabaseStatistics dropTable(Connection connection, String tableName)(Code)(Java Doc) public DatabaseStatistics ensureTable(Connection connection, String tableName, Map attributeTypes, List keyAttributeNames, boolean create)(Code)(Java Doc) protected void executeUpdate(Connection connection, String statement)(Code)(Java Doc) protected String getAddColumnStatement(String tableName, String columnName, String columnType)(Code)(Java Doc) protected Class getAttributeType(String tableName, String attributeName)(Code)(Java Doc) protected Map getAttributes(String tableName)(Code)(Java Doc) protected String getCountStatement(String stmt)(Code)(Java Doc) protected String getCreateIndexName(Connection connection, String tableName, String field)(Code)(Java Doc) protected String getCreateIndexStatement(String indexName, String tableName, String field, Class fieldClass)(Code)(Java Doc) protected String getCreateTableStatement(Connection connection, String tableName)(Code)(Java Doc) protected String getDropColumnStatement(String tableName, String columnName)(Code)(Java Doc) protected String getInsertStatement(String tableName, List attributeNames)(Code)(Java Doc) protected Object getJavaValue(Object value, int type, Class javaType)(Code)(Java Doc) protected String getLimitStatement(String statement, Limits limits, List types)(Code)(Java Doc) protected String getQuerySource(TableTerm term, Set queryColumns, List types)(Code)(Java Doc) protected String getQuerySource(QueryStatement stmt, List types)(Code)(Java Doc) protected String getRemoveStatement(String tableName, List attributeNames)(Code)(Java Doc) protected int getSQLType(Class type)(Code)(Java Doc) protected String getSQLTypeName(int sqltype)(Code)(Java Doc) protected Object getSQLValue(Object value)(Code)(Java Doc) protected String getSaveStatement(String tableName, List keyNames, List attributeNames, Map keys)(Code)(Java Doc) protected int getTableAttributeType(ResultSet rs) throws SQLException(Code)(Java Doc) protected HashMap getTableAttributeTypes(Connection connection, String tableName) throws SQLException(Code)(Java Doc) protected String getTableDeclaration(String tableName, String alias)(Code)(Java Doc) public DatabaseStatistics insert(Connection connection, String tableName, Map attributes)(Code)(Java Doc) protected void prepareResultSet(ResultSet rs, Limits limits) throws SQLException(Code)(Java Doc) protected void prepareStatement(PreparedStatement pstmt, Limits limits) throws SQLException(Code)(Java Doc) public void release(ConnectionSource source)(Code)(Java Doc) public DatabaseStatistics remove(Connection connection, String tableName, Map attributes)(Code)(Java Doc) public DatabaseStatistics save(Connection connection, String tableName, Map keys, Map attributes)(Code)(Java Doc) public DatabaseStatistics search(Connection connection, QueryStatement stmt, Limits limits, SearchResult searchResult)(Code)(Java Doc) protected Expression transformExpression(Expression expr)(Code)(Java Doc)
|
|
|