com.im.df/1 5.9.1

com.im.df.impl.db.api
Class DBImplBackdoor

java.lang.Object
  extended by com.im.df.impl.db.api.DBImplBackdoor

public class DBImplBackdoor
extends Object

This class is a factory for creating DB impl items. It is used in legacy data loaders to be able to load old projects and create new implementations.


Method Summary
static String createSchema(CreateSchemaInfo createInfo, DFEnvironmentRO env)
          Creates a new schema, using information / connection present in the CreateSchemaInfo.
static List<DFDataAcceptor> getAllAcceptors()
          Get all the different types of DFDataAcceptor TODO - DIF API move this methods to API
static Map<String,String> getAllSchemas(DatabasePlatform platform, DFEnvironmentRO env)
          Returns a map of schema ID -> schema name of all schemas in the database, never null.
static List<DFDataAcceptor> getStandardDataAcceptors()
          Utility method to get the data acceptors for the standard field types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createSchema

public static String createSchema(CreateSchemaInfo createInfo,
                                  DFEnvironmentRO env)
                           throws IOException
Creates a new schema, using information / connection present in the CreateSchemaInfo. Note: this method is temporary; it will be removed when the SchemaProvider will support schema creation.

Parameters:
createInfo - The schema creation properties
Throws:
IOException

getAllSchemas

public static Map<String,String> getAllSchemas(DatabasePlatform platform,
                                               DFEnvironmentRO env)
Returns a map of schema ID -> schema name of all schemas in the database, never null. DO NOT USE ! This method is temporary for use in Connect to Schema operation until it uses DFSchemaProvider interface as the process implementation. The method only works for remote databases.

Parameters:
platform - The Database connection/platform.

getAllAcceptors

public static List<DFDataAcceptor> getAllAcceptors()
Get all the different types of DFDataAcceptor TODO - DIF API move this methods to API


getStandardDataAcceptors

public static List<DFDataAcceptor> getStandardDataAcceptors()
Utility method to get the data acceptors for the standard field types. If testing for data Acceptance you probably want to clone this list. This is a back door way to get these acceptors. Currently there is no way in the API to get the data acceptors for an entity without first creating the entity and all its database artifacts. This need to be reviewed.


com.im.df/1 5.9.1