Examples of DatabaseType


Examples of com.oltpbenchmark.types.DatabaseType

   
    /**
     * testDumpXMLFile
     */
    public void testDumpXMLFile() throws Exception {
        DatabaseType dbType = DatabaseType.POSTGRES;
        StatementDialects dialects = new StatementDialects(dbType, xmlFile);
       
        String dump = dialects.export(dbType, this.benchmark.getProcedures().values());
        assertNotNull(dump);
        assertFalse(dump.isEmpty());
View Full Code Here

Examples of com.reflectiondao.types.DatabaseType

    DatabaseFieldStrategy<T> strat = new DatabaseFieldStrategy<>();

    for (Field f : t.getClass().getDeclaredFields()) {
      DatabaseField db = f.getAnnotation(DatabaseField.class);
      if (strat.isNotKey(db) && !strat.hasDefault(db)) {
        DatabaseType type = db.type();

        f.setAccessible(true);

        strat.processFieldForStatement(type, f, t, ps, i);
        i++;
View Full Code Here

Examples of com.slytechs.utils.db.DatabaseUtils.DatabaseType

   *
   * @param dbType
   *   The database type to set.
   */
  public void setDbType(DatabaseType dbType) {
    DatabaseType oldValue = this.dbType;
    this.dbType = dbType;
   
    properties.put(DB_TYPE, dbType);
   
    firePropertyChange(DBProperties.DB_TYPE, oldValue, dbType);
View Full Code Here

Examples of de.iritgo.aktera.persist.DatabaseType

   * @throws PersistenceException
   */
  protected String selectFieldString(String fieldName) throws PersistenceException
  {
    String dbFieldName = myMetaData.getDBFieldName(fieldName);
    DatabaseType myDBType = myMetaData.getDatabaseType();

    String fieldType = myMetaData.getType(fieldName);

    if (fieldType.equalsIgnoreCase("date"))
    {
      if (! SuperString.notNull(myDBType.getDateSelectFunction()).equals(""))
      {
        return (SuperString.replace(myDBType.getDateSelectFunction(), "%s", dbFieldName));
      }
    }

    if (fieldType.equalsIgnoreCase("time"))
    {
      if (! SuperString.notNull(myDBType.getTimeSelectFunction()).equals(""))
      {
        return (SuperString.replace(myDBType.getTimeSelectFunction(), "%s", dbFieldName));
      }
    }

    if (fieldType.equalsIgnoreCase("datetime"))
    {
      if (! SuperString.notNull(myDBType.getDateTimeSelectFunction()).equals(""))
      {
        return (SuperString.replace(myDBType.getDateTimeSelectFunction(), "%s", dbFieldName));
      }
    }

    return dbFieldName;
  } /* selectFieldString(String) */
 
View Full Code Here

Examples of de.zalando.typemapper.annotations.DatabaseType

                final Class<?> paramsClass = (Class<?>) p.getActualTypeArguments()[0];

                innerTypeName = PgTypeHelper.getSQLNameForClass(paramsClass);
                if (innerTypeName == null) {

                    final DatabaseType dbType = paramsClass.getAnnotation(DatabaseType.class);
                    if (dbType != null) {
                        innerTypeName = dbType.name();
                    }

                    if (innerTypeName == null || innerTypeName.isEmpty()) {
                        innerTypeName = NameUtils.camelCaseToUnderscore(paramsClass.getSimpleName());
                    }
View Full Code Here

Examples of liquibase.integration.ant.type.DatabaseType

        }
        this.databaseType = databaseType;
    }

    public void setDatabaseRef(Reference databaseRef) {
        databaseType = new DatabaseType(getProject());
        databaseType.setRefid(databaseRef);
    }
View Full Code Here

Examples of org.apache.airavata.wsmg.commons.storage.DatabaseCreator.DatabaseType

        }
        return resultObj;
    }

    private void batchCleanDB(Statement stmt, Connection con) throws SQLException {
        DatabaseType databaseType = DatabaseType.other;
        int[] aiupdateCounts = new int[0];
        boolean bError = false;
        try {

            con.setAutoCommit(false);
View Full Code Here

Examples of org.eclipse.persistence.internal.helper.DatabaseType

     * PUBLIC:
     * Add a named IN argument to the stored procedure. The databaseType parameter classifies the
     * parameter (JDBCType vs. OraclePLSQLType, simple vs. complex)
     */
    public void addNamedArgument(String procedureParameterName, DatabaseType databaseType) {
        DatabaseType dt = databaseType.isComplexDatabaseType() ?
            ((ComplexDatabaseType)databaseType).clone() : databaseType;
        arguments.add(new PLSQLargument(procedureParameterName, originalIndex++, IN, dt));
    }
View Full Code Here

Examples of org.eclipse.persistence.internal.helper.DatabaseType

     * parameter (JDBCType vs. OraclePLSQLType, simple vs. complex). The extra length parameter
     * indicates that this parameter, when used in an Anonymous PL/SQL block, requires a length.
     */
    public void addNamedArgument(String procedureParameterName, DatabaseType databaseType,
        int length) {
        DatabaseType dt = databaseType.isComplexDatabaseType() ?
            ((ComplexDatabaseType)databaseType).clone() : databaseType;
        arguments.add(new PLSQLargument(procedureParameterName, originalIndex++, IN, dt, length));
    }
View Full Code Here

Examples of org.eclipse.persistence.internal.helper.DatabaseType

     * parameters indicates that this parameter, when used in an Anonymous PL/SQL block, requires
     * scale and precision specification
     */
    public void addNamedArgument(String procedureParameterName, DatabaseType databaseType,
        int precision, int scale) {
        DatabaseType dt = databaseType.isComplexDatabaseType() ?
            ((ComplexDatabaseType)databaseType).clone() : databaseType;
        arguments.add(new PLSQLargument(procedureParameterName, originalIndex++, IN, dt, precision, scale));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.