Package net.sf.hajdbc.cache.lazy

Examples of net.sf.hajdbc.cache.lazy.LazyDatabaseProperties


  @Override
  public DatabaseProperties getDatabaseProperties(D database, Connection connection) throws SQLException
  {
    DatabaseMetaData metaData = connection.getMetaData();
    Dialect dialect = this.cluster.getDialect();
    return new LazyDatabaseProperties(new SimpleDatabaseMetaDataProvider(metaData), dialect);
  }
View Full Code Here


   
    try
    {
      connection.setAutoCommit(true);
 
      DatabaseProperties properties = new LazyDatabaseProperties(new SimpleDatabaseMetaDataProvider(connection.getMetaData()), dialect);

      String enumType = properties.findType(0, Types.TINYINT, Types.SMALLINT, Types.INTEGER);
      String stringType = properties.findType(Database.ID_MAX_SIZE, Types.VARCHAR);
      String binaryType = properties.findType(this.cluster.getTransactionIdentifierFactory().size(), Types.BINARY);
      String varBinaryType = properties.findType(0, Types.VARBINARY);
     
      Statement statement = connection.createStatement();
     
      try
      {
View Full Code Here

   
    try
    {
      connection.setAutoCommit(true);
 
      DatabaseProperties properties = new LazyDatabaseProperties(new SimpleDatabaseMetaDataProvider(connection.getMetaData()), dialect);

      String enumType = properties.findType(0, Types.TINYINT, Types.SMALLINT, Types.INTEGER);
      String stringType = properties.findType(Database.ID_MAX_SIZE, Types.VARCHAR);
      String binaryType = properties.findType(this.cluster.getTransactionIdentifierFactory().size(), Types.BINARY);
      String varBinaryType = properties.findType(0, Types.VARBINARY);
     
      Statement statement = connection.createStatement();
     
      try
      {
View Full Code Here

   
    try
    {
      connection.setAutoCommit(true);
 
      DatabaseProperties properties = new LazyDatabaseProperties(new SimpleDatabaseMetaDataProvider(connection.getMetaData()), dialect);

      String enumType = properties.findType(0, Types.TINYINT, Types.SMALLINT, Types.INTEGER);
      String stringType = properties.findType(Database.ID_MAX_SIZE, Types.VARCHAR);
      String binaryType = properties.findType(this.cluster.getTransactionIdentifierFactory().size(), Types.BINARY);
      String varBinaryType = properties.findType(0, Types.VARBINARY);
     
      Statement statement = connection.createStatement();
     
      try
      {
View Full Code Here

TOP

Related Classes of net.sf.hajdbc.cache.lazy.LazyDatabaseProperties

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.