Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  *  Copyright 2009-2014 Pavel Ponec
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *  You may obtain a copy of the License at
  *
  *      http://www.apache.org/licenses/LICENSE-2.0
  *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package org.ujorm.orm.dialect;
Hsqldb dialect (http://hsqldb.org)

Author(s):
Pavel Ponec
public class HsqldbDialect extends H2Dialect {
    @Override
    public String getJdbcDriver() {
        return "org.hsqldb.jdbcDriver";
    }

    
Print SQL 'CREATE SCHEMA'
    @Override
    public Appendable printCreateSchema(String schemaAppendable outthrows IOException {
        out.append("CREATE SCHEMA ");
        printQuotedName(schemaout);
        out.append(" AUTHORIZATION DBA");
        return out;
    }

    
COMMENT is not supported in HSQLDB database
    @Override
    public Appendable printComment(MetaTable tableAppendable outthrows IOException {
        return out;
    }

    
COMMENT is not supported in HSQLDB database
    @Override
    public Appendable printComment(MetaColumn columnAppendable outthrows IOException {
        return out;
    }

    
Database HSQLDB does not supports the MultiRow INSERT.
    @Override
    public boolean isMultiRowInsertSupported() {
        return false;
    }

    
Including 1.7.2, HSQLDB does not support table locking via SELECT FOR UPDATE.
For more information see http://hsqldb.org.
    @Override
        return out;
    }

    
Create a SQL script for the NEXT SEQUENCE from a native database sequencer
    @Override
    public Appendable printNextSequence(String sequenceNameMetaTable tableAppendable outthrows IOException {
        out.append("CALL NEXT VALUE FOR ");
        out.append(sequenceName);
        return out;
    }
New to GrepCode? Check out our FAQ X