public abstract class AbstractTestDatabase extends Object
Modifier and Type | Field and Description |
---|---|
static Alien[] |
ALIEN_TEST_VALUES |
static Contact[] |
CONTACT_TEST_VALUES |
static String |
NO_RESULSET_FROM_FUNCTION_SUPPORT_ERROR |
static String |
NO_SQLXML_SUPPORT_ERROR |
static String |
NO_UDT_SUPPORT_ERROR |
static Planet[] |
PLANET_TEST_VALUES |
static RegionManager[] |
REGION_MANAGER_TEST_VALUES |
static Region[] |
REGION_TEST_VALUES |
Constructor and Description |
---|
AbstractTestDatabase() |
public static final Planet[] PLANET_TEST_VALUES
public static final Alien[] ALIEN_TEST_VALUES
public static final Contact[] CONTACT_TEST_VALUES
public static final Region[] REGION_TEST_VALUES
public static final RegionManager[] REGION_MANAGER_TEST_VALUES
public static final String NO_SQLXML_SUPPORT_ERROR
public static final String NO_RESULSET_FROM_FUNCTION_SUPPORT_ERROR
public static final String NO_UDT_SUPPORT_ERROR
public void deletePlanetTable(Connection connection) throws SQLException
SQLException
public abstract void createPlanetTable(Connection connection) throws SQLException
SQLException
public static void executeDdl(DataSource dataSource, String ddl) throws SQLException
SQLException
public static void executeDdl(Connection connection, String ddl) throws SQLException
SQLException
public void executeUpdate(Connection connection, String updateSql) throws SQLException
SQLException
public final void populatePlanetTable(Connection connection, Planet[] testValues) throws SQLException
SQLException
public void createDefaultDatabaseConfig(DataSource dataSource) throws SQLException
SQLException
protected boolean supportsArraysUdt()
protected boolean supportsSimpleUdt()
protected void createZipArrayType(Connection connection) throws SQLException
SQLException
protected void createContactDetailsType(Connection connection) throws SQLException
SQLException
protected void createContactDetailsArrayType(Connection connection) throws SQLException
SQLException
protected void createContactsTable(Connection connection) throws SQLException
SQLException
protected void deleteContactsTable(Connection connection) throws SQLException
SQLException
protected void createRegionsTestTable(Connection connection) throws SQLException
SQLException
protected void createRegionsTable(Connection connection) throws SQLException
SQLException
protected void deleteRegionsTable(Connection connection) throws SQLException
SQLException
protected void deleteRegionManagersTable(Connection connection) throws SQLException
SQLException
protected void createRegionManagersTable(Connection connection) throws SQLException
SQLException
protected String getInsertRegionManagerSql(RegionManager regionManager)
protected void createAlienTable(Connection connection) throws SQLException
SQLException
protected void deleteAlienTable(Connection connection) throws SQLException
SQLException
protected boolean supportsXmlType()
protected void createPlanetTestTable(Connection connection) throws SQLException
SQLException
public void createStoredProcedure(DataSource dataSource, String sql) throws SQLException
SQLException
public abstract void createStoredProcedureGetRecords(DataSource dataSource) throws SQLException
SQLException
public void createFunctionGetRecords(DataSource dataSource) throws SQLException
SQLException
public abstract void createStoredProcedureUpdateTestType1(DataSource dataSource) throws SQLException
SQLException
public abstract void createStoredProcedureParameterizedUpdateTestType1(DataSource dataSource) throws SQLException
SQLException
public abstract void createStoredProcedureCountRecords(DataSource dataSource) throws SQLException
SQLException
public abstract void createStoredProcedureGetSplitRecords(DataSource dataSource) throws SQLException
SQLException
public abstract void createStoredProcedureDoubleMyInt(DataSource dataSource) throws SQLException
SQLException
public abstract void createStoredProcedureMultiplyInts(DataSource dataSource) throws SQLException
SQLException
public abstract void createStoredProcedureConcatenateStrings(DataSource dataSource) throws SQLException
SQLException
public abstract void createDelayFunction(DataSource dataSource) throws SQLException
SQLException
public void createStoredProcedureGetAlienDescription(DataSource dataSource) throws SQLException
SQLException
public void createStoredProcedureUpdateAlienDescription(DataSource dataSource) throws SQLException
SQLException
public void createStoredProcedureGetZipCodes(DataSource dataSource) throws SQLException
SQLException
public void createStoredProcedureGetContactDetails(DataSource dataSource) throws SQLException
SQLException
public void createStoredProcedureGetManagerDetails(DataSource dataSource) throws SQLException
SQLException
public org.mule.common.metadata.datatype.DataType getIdFieldInputMetaDataType()
public org.mule.common.metadata.datatype.DataType getIdFieldOutputMetaDataType()
public org.mule.common.metadata.datatype.DataType getPositionFieldOutputMetaDataType()
public Class getIdFieldJavaClass()
public Class getDefaultAutoGeneratedKeyClass()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.