Examples of DatabaseType


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

        XMLCompositeObjectMapping databaseTypeMapping = new XMLCompositeObjectMapping();
        databaseTypeMapping.setAttributeName("databaseTypeWrapper");
        databaseTypeMapping.setAttributeAccessor(new AttributeAccessor() {
            public Object getAttributeValueFromObject(Object object) {
                PLSQLCollection collection = (PLSQLCollection)object;
                DatabaseType type = collection.getNestedType();
                return wrapType(type);
            }
            public void setAttributeValueInObject(Object object, Object value) {
                PLSQLCollection collection = (PLSQLCollection)object;
                DatabaseTypeWrapper type = (DatabaseTypeWrapper)value;
                collection.setNestedType(type.getWrappedType());
            }
        });
        databaseTypeMapping.setReferenceClass(DatabaseTypeWrapper.class);
        databaseTypeMapping.setXPath("nested-type");
        descriptor.addMapping(databaseTypeMapping);
View Full Code Here

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

         XMLCompositeObjectMapping databaseTypeMapping = new XMLCompositeObjectMapping();
         databaseTypeMapping.setAttributeName("databaseTypeWrapper");
         databaseTypeMapping.setAttributeAccessor(new AttributeAccessor() {
           public Object getAttributeValueFromObject(Object object) {
             PLSQLargument argument = (PLSQLargument)object;
             DatabaseType type = argument.databaseType;
             return wrapType(type);
           }

           public void setAttributeValueInObject(Object object, Object value) {
             PLSQLargument argument = (PLSQLargument)object;
             DatabaseTypeWrapper type = (DatabaseTypeWrapper)value;
             argument.databaseType = type.getWrappedType();
           }
          });
         databaseTypeMapping.setReferenceClass(DatabaseTypeWrapper.class);
         databaseTypeMapping.setXPath(".");
         descriptor.addMapping(databaseTypeMapping);
View Full Code Here

Examples of org.infinispan.loaders.jdbc.DatabaseType

    *
    * @param dbType
    */
   public void setDatabaseType(String dbType) {
      if (dbType != null) {
         DatabaseType type = DatabaseType.valueOf(dbType.toUpperCase().trim());
         binaryTableManipulation.databaseType = type;
         stringsTableManipulation.databaseType = type;
      }
   }
View Full Code Here

Examples of org.infinispan.loaders.jdbc.DatabaseType

    *
    * @param dbType
    */
   public void setDatabaseType(String dbType) {
      if (dbType != null) {
         DatabaseType type = DatabaseType.valueOf(dbType.toUpperCase().trim());
         binaryTableManipulation.databaseType = type;
         stringsTableManipulation.databaseType = type;
      }
   }
View Full Code Here

Examples of org.infinispan.loaders.jdbc.DatabaseType

    *
    * @param dbType
    */
   public void setDatabaseType(String dbType) {
      if (dbType != null) {
         DatabaseType type = DatabaseType.valueOf(dbType.toUpperCase().trim());
         binaryTableManipulation.databaseType = type;
         stringsTableManipulation.databaseType = type;
      }
   }
View Full Code Here

Examples of org.infinispan.loaders.jdbc.DatabaseType

    *
    * @param dbType
    */
   public void setDatabaseType(String dbType) {
      if (dbType != null) {
         DatabaseType type = DatabaseType.valueOf(dbType.toUpperCase().trim());
         binaryTableManipulation.databaseType = type;
         stringsTableManipulation.databaseType = type;
      }
   }
View Full Code Here

Examples of org.infinispan.persistence.jdbc.DatabaseType

                return builder;
            }
            case STRING_KEYED_JDBC:
            case BINARY_KEYED_JDBC:
            case MIXED_KEYED_JDBC: {
                DatabaseType dialect = ModelNodes.asEnum(JDBCStoreResourceDefinition.DIALECT.resolveModelAttribute(context, store), DatabaseType.class);

                AbstractJdbcStoreConfigurationBuilder<?, ?> builder = buildJdbcStore(persistenceBuilder, context, store).dialect(dialect);

                String datasource = JDBCStoreResourceDefinition.DATA_SOURCE.resolveModelAttribute(context, store).asString();
View Full Code Here

Examples of org.jboss.forge.addon.javaee.jpa.DatabaseType

      dbType.setDefaultValue(new Callable<DatabaseType>()
      {
         @Override
         public DatabaseType call() throws Exception
         {
            DatabaseType type = DatabaseType.DEFAULT;
            PersistenceContainer pc = (PersistenceContainer) uiContext.getAttributeMap()
                     .get(PersistenceContainer.class);
            if (pc instanceof JavaEEDefaultContainer)
            {
               type = ((JavaEEDefaultContainer) pc).getDefaultDatabaseType();
View Full Code Here

Examples of org.jboss.forge.addon.javaee.jpa.DatabaseType

      dbType.setDefaultValue(new Callable<DatabaseType>()
      {
         @Override
         public DatabaseType call() throws Exception
         {
            DatabaseType type = DatabaseType.DEFAULT;
            PersistenceContainer pc = (PersistenceContainer) uiContext.getAttributeMap()
                     .get(PersistenceContainer.class);
            if (pc instanceof JavaEEDefaultContainer)
            {
               type = ((JavaEEDefaultContainer) pc).getDefaultDatabaseType();
View Full Code Here

Examples of org.openbel.framework.common.enums.DatabaseType

     */
    @Override
    public DBConnection dbConnection(final String url, final String user,
            final String pass) throws SQLException {

        final DatabaseType type = getDatabaseTypeForURL(url);
        if (type == null) {
            final String err = "failed to determine database type (URL: %s)";
            throw new UnsupportedOperationException(format(err, url));
        }
        try {
            Class.forName(type.getDriverClassName());
        } catch (ClassNotFoundException e) {
            final String err = "failed to load database driver (URL: %s)";
            final String msg = format(err, url);
            throw new UnsupportedOperationException(msg, e);
        }
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.