Package net.sf.hajdbc

Examples of net.sf.hajdbc.DatabaseProperties


  @Override
  public DatabaseProperties getDatabaseProperties(D database, Connection connection) throws SQLException
  {
    synchronized (this.map)
    {
      DatabaseProperties properties = this.map.get(database);
     
      if (properties == null)
      {
        properties = this.createDatabaseProperties(connection);
       
View Full Code Here


      if (entry == null)
      {
        DatabaseMetaData metaData = connection.getMetaData();
        Dialect dialect = this.cluster.getDialect();
        LazyDatabaseMetaDataProvider provider = new LazyDatabaseMetaDataProvider(metaData);
        DatabaseProperties properties = new LazyDatabaseProperties(provider, dialect);
       
        entry = new AbstractMap.SimpleImmutableEntry<DatabaseProperties, LazyDatabaseMetaDataProvider>(properties, provider);

        this.map.put(database, entry);
      }
View Full Code Here

    if (entry == null)
    {
      DatabaseMetaData metaData = connection.getMetaData();
      Dialect dialect = this.cluster.getDialect();
      LazyDatabaseMetaDataProvider provider = new LazyDatabaseMetaDataProvider(metaData);
      DatabaseProperties properties = new LazyDatabaseProperties(provider, dialect);
     
      entry = new AbstractMap.SimpleImmutableEntry<DatabaseProperties, LazyDatabaseMetaDataProvider>(properties, provider);
   
      this.entryRef = new SoftReference<Map.Entry<DatabaseProperties, LazyDatabaseMetaDataProvider>>(entry);
    }
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

  @Override
  public DatabaseProperties getDatabaseProperties(D database, Connection connection) throws SQLException
  {
    synchronized (this.map)
    {
      DatabaseProperties properties = this.map.get(database);
     
      if (properties == null)
      {
        properties = this.createDatabaseProperties(connection);
       
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.DatabaseProperties

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.