Package de.iritgo.aktera.persist

Examples of de.iritgo.aktera.persist.PersistenceException


  /* (non-Javadoc)
   * @see de.iritgo.aktera.persist.DatabaseType#getDropSequenceSyntax(String)
   */
  public String getDropSequenceSyntax(String sequenceName) throws PersistenceException
  {
    throw new PersistenceException("SQL Sequence not supported");
  }
View Full Code Here


  /* @see de.iritgo.aktera.persist.DatabaseType#getInsertIdentitySyntax()
   */
  public String getInsertIdentitySyntax() throws PersistenceException
  {
    throw new PersistenceException("SQL Identity not supported");
  }
View Full Code Here

  /* @see de.iritgo.aktera.persist.DatabaseType#getRetrieveIdentitySyntax()
   */
  public String getRetrieveIdentitySyntax(PersistentMetaData pmd, String idFieldName) throws PersistenceException
  {
    throw new PersistenceException("SQL Identity not supported");
  }
View Full Code Here

  /* @see de.iritgo.aktera.persist.DatabaseType#getRetrieveSequenceSyntax(String)
   */
  public String getRetrieveSequenceSyntax(String sequenceName) throws PersistenceException
  {
    throw new PersistenceException("SQL Sequence not supported");
  }
View Full Code Here

    String tableName = index.getTableName();
    String fieldNames = index.getFieldNames();

    if (indexName == null)
    {
      throw new PersistenceException("Index_ConstructSQL_IllegalArgument");
    }

    if (tableName == null)
    {
      throw new PersistenceException("Index_ConstructSQL_IllegalArgument");
    }

    if (fieldNames == null)
    {
      throw new PersistenceException("Index_ConstructSQL_IllegalArgument");
    }

    StringBuffer statement = new StringBuffer(100);

    if (create)
View Full Code Here

   * @return The rename statement.
   */
  public String getRenameFieldStatement(PersistentMetaData pmd, String oldFieldName, String newFieldName)
    throws PersistenceException
  {
    throw new PersistenceException("[JDBCDatabaseType] No getRenameFieldStatement() method defined.");
  }
View Full Code Here

    }
    catch (SQLException se)
    {
      log.error(se.toString());

      throw new PersistenceException("Unable to rename field '" + oldFieldName + "' in table '"
              + pmd.getTableName() + "' to '" + newFieldName + "'");
    }
    finally
    {
      if (myConnection != null)
      {
        try
        {
          myConnection.close();
        }
        catch (SQLException se)
        {
          throw new PersistenceException(se);
        }
      }
    }
  }
View Full Code Here

    }
    catch (SQLException se)
    {
      log.error(se.toString());

      throw new PersistenceException("Unable to check for field '" + fieldName + "' in table '"
              + pmd.getTableName());
    }
    finally
    {
      if (res != null)
      {
        try
        {
          res.close();
        }
        catch (SQLException se)
        {
          throw new PersistenceException(se);
        }
      }

      if (connection != null)
      {
        try
        {
          connection.close();
        }
        catch (SQLException se)
        {
          throw new PersistenceException(se);
        }
      }
    }
  }
View Full Code Here

    }
    catch (SQLException se)
    {
      log.error(se.toString());

      throw new PersistenceException("Unable to rename table '" + oldTableName + "' to '" + newTableName + "'");
    }
    finally
    {
      if (connection != null)
      {
        try
        {
          connection.close();
        }
        catch (SQLException se)
        {
          throw new PersistenceException(se);
        }
      }
    }
  }
View Full Code Here

        {
          connection.close();
        }
        catch (SQLException se)
        {
          throw new PersistenceException(se);
        }
      }
    }
  }
View Full Code Here

TOP

Related Classes of de.iritgo.aktera.persist.PersistenceException

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.