com.gs.fw.common.mithra.bulkloader.BulkLoaderException Java Examples

The following examples show how to use com.gs.fw.common.mithra.bulkloader.BulkLoaderException. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SybaseDatabaseType.java    From reladomo with Apache License 2.0 6 votes vote down vote up
@Deprecated
public BulkLoader createBulkLoader(Connection connection, String user, String password, String hostName, int port) throws BulkLoaderException
{
    try
    {
        if (connection != null)
        {
            getLogger().error("Using deprecated method createBulkLoader with a connection object can lead to pool exhaustion!");
            connection.close();
            connection = null;
        }
    }
    catch (SQLException e)
    {
        getLogger().error("could not close connection", e);
    }
    return createBulkLoader(user, password, hostName, port);
}
 
Example #2
Source File: SybaseIqDatabaseType.java    From reladomo with Apache License 2.0 6 votes vote down vote up
@Deprecated
public BulkLoader createBulkLoader(Connection connection, String user, String password, String dbLoadDir, String appLoadDir) throws BulkLoaderException
{
    if (connection != null)
    {
        try
        {
            connection.close();
        }
        catch (SQLException e)
        {
            logger.error("could not close connection", e);
        }
    }
    return new SybaseIqBulkLoader(this, dbLoadDir, appLoadDir);
}
 
Example #3
Source File: SybaseIqTestConnectionManager.java    From reladomo with Apache License 2.0 6 votes vote down vote up
public BulkLoader createBulkLoader()
throws BulkLoaderException
{
    String dbLoadDir = System.getProperty("dbLoadDir");
    String appLoadDir = System.getProperty("appLoadDir");
    if (dbLoadDir == null)
    {
        dbLoadDir = getCredential("sybaseiq_dbloaddir");
    }
    if (appLoadDir == null)
    {
        String os = System.getProperty("os.name");
        if (os.toLowerCase().contains("windows"))
        {
            appLoadDir = getCredential("sybaseiq_unix_apploaddir");
        }
        else
        {
            appLoadDir = getCredential("sybaseiq_windows_apploaddir");
        }
    }
    return this.getDatabaseType().createBulkLoader(
            dbLoadDir,
                appLoadDir);
}
 
Example #4
Source File: SybaseIqNativeTestConnectionManager.java    From reladomo with Apache License 2.0 5 votes vote down vote up
public BulkLoader createBulkLoader()
throws BulkLoaderException
{
    String appLoadDir = System.getProperty("appLoadDir");
    if (appLoadDir == null)
    {
        appLoadDir = System.getProperty("java.io.tmpdir");
    }
    return this.getDatabaseType().createBulkLoader(null, appLoadDir);
}
 
Example #5
Source File: SybaseTestConnectionManager.java    From reladomo with Apache License 2.0 5 votes vote down vote up
public BulkLoader createBulkLoader()
throws BulkLoaderException
{
    return ((SybaseDatabaseType) getDatabaseType()).createBulkLoader(
            getCredential("sybase_username"),
            getCredential("sybase_password"),
                    this.connectionManager.getHostName(),
                    this.connectionManager.getPort(),
                    this.isDataModelMismatchIsFatal);
}
 
Example #6
Source File: ConnectionManagerWrapper.java    From reladomo with Apache License 2.0 4 votes vote down vote up
@Override
public BulkLoader createBulkLoader(Object sourceAttribute) throws BulkLoaderException
{
    return getAsObjectSource().createBulkLoader(sourceAttribute);
}
 
Example #7
Source File: ConnectionManagerWrapper.java    From reladomo with Apache License 2.0 4 votes vote down vote up
@Override
public BulkLoader createBulkLoader() throws BulkLoaderException
{
    return getAsSourceLess().createBulkLoader();
}
 
Example #8
Source File: ConnectionManagerWrapper.java    From reladomo with Apache License 2.0 4 votes vote down vote up
@Override
public BulkLoader createBulkLoader(int sourceAttribute) throws BulkLoaderException
{
    return getAsIntSource().createBulkLoader(sourceAttribute);
}
 
Example #9
Source File: ReplicationNotificationConnectionManager.java    From reladomo with Apache License 2.0 4 votes vote down vote up
public BulkLoader createBulkLoader(int sourceAttribute) throws BulkLoaderException
{
   return null;
}
 
Example #10
Source File: ConnectionManagerForTests.java    From reladomo with Apache License 2.0 4 votes vote down vote up
public BulkLoader createBulkLoader() throws BulkLoaderException
{
    DatabaseType databaseType = this.getDatabaseType();
    return databaseType.createBulkLoader(this.getLoginUser(databaseType), "", "", -1);
}
 
Example #11
Source File: ConnectionManagerForTests.java    From reladomo with Apache License 2.0 4 votes vote down vote up
public BulkLoader createBulkLoader(int sourceAttribute) throws BulkLoaderException
{
    DatabaseType databaseType = this.getDatabaseType(sourceAttribute);
    return databaseType.createBulkLoader(this.getLoginUser(databaseType), "", "", -1);
}
 
Example #12
Source File: ConnectionManagerForTests.java    From reladomo with Apache License 2.0 4 votes vote down vote up
public BulkLoader createBulkLoader(Object sourceAttribute) throws BulkLoaderException
{
    DatabaseType databaseType = this.getDatabaseType(sourceAttribute);
    return databaseType.createBulkLoader(this.getLoginUser(databaseType), "", "", -1);
}
 
Example #13
Source File: VendorTestConnectionManager.java    From reladomo with Apache License 2.0 4 votes vote down vote up
public BulkLoader createBulkLoader(Object sourceAttribute) throws BulkLoaderException
{
    return createBulkLoader();
}
 
Example #14
Source File: Db2TestConnectionManager.java    From reladomo with Apache License 2.0 4 votes vote down vote up
public BulkLoader createBulkLoader()
throws BulkLoaderException
{
    return null;
}
 
Example #15
Source File: OracleTestConnectionManager.java    From reladomo with Apache License 2.0 4 votes vote down vote up
public BulkLoader createBulkLoader()
throws BulkLoaderException
{
    return null;
}
 
Example #16
Source File: MariaTestConnectionManager.java    From reladomo with Apache License 2.0 4 votes vote down vote up
public BulkLoader createBulkLoader()
throws BulkLoaderException
{
    return null;
}
 
Example #17
Source File: PostgresTestConnectionManager.java    From reladomo with Apache License 2.0 4 votes vote down vote up
public BulkLoader createBulkLoader()
throws BulkLoaderException
{
    return null;
}
 
Example #18
Source File: MsSqlTestConnectionManager.java    From reladomo with Apache License 2.0 4 votes vote down vote up
public BulkLoader createBulkLoader()
throws BulkLoaderException
{
    return null;
}
 
Example #19
Source File: H2ConnectionManager.java    From reladomo with Apache License 2.0 4 votes vote down vote up
public BulkLoader createBulkLoader() throws BulkLoaderException
{
    throw new RuntimeException("BulkLoader is not supported");
}
 
Example #20
Source File: BankConnectionManager.java    From reladomo-kata with Apache License 2.0 4 votes vote down vote up
@Override
public BulkLoader createBulkLoader() throws BulkLoaderException
{
    return null;
}
 
Example #21
Source File: BankConnectionManager.java    From reladomo-kata with Apache License 2.0 4 votes vote down vote up
@Override
public BulkLoader createBulkLoader() throws BulkLoaderException
{
    return null;
}
 
Example #22
Source File: BankConnectionManager.java    From reladomo-kata with Apache License 2.0 4 votes vote down vote up
@Override
public BulkLoader createBulkLoader() throws BulkLoaderException
{
    return null;
}
 
Example #23
Source File: ReladomoConnectionManager.java    From tutorials with MIT License 4 votes vote down vote up
@Override
public BulkLoader createBulkLoader() throws BulkLoaderException {
    return null;
}
 
Example #24
Source File: CustomerAccountDatabaseObjectAbstract.java    From reladomo-scala with Apache License 2.0 4 votes vote down vote up
public BulkLoader createBulkLoaderGenericSource(Object source) throws BulkLoaderException 
{
	return connectionManager.createBulkLoader();
}
 
Example #25
Source File: CustomerDatabaseObjectAbstract.java    From reladomo-scala with Apache License 2.0 4 votes vote down vote up
public BulkLoader createBulkLoaderGenericSource(Object source) throws BulkLoaderException 
{
	return connectionManager.createBulkLoader();
}
 
Example #26
Source File: PersonDatabaseObjectAbstract.java    From reladomo-scala with Apache License 2.0 4 votes vote down vote up
public BulkLoader createBulkLoaderGenericSource(Object source) throws BulkLoaderException 
{
	return connectionManager.createBulkLoader();
}
 
Example #27
Source File: ObjectSequenceDatabaseObjectAbstract.java    From reladomo-scala with Apache License 2.0 4 votes vote down vote up
public BulkLoader createBulkLoaderGenericSource(Object source) throws BulkLoaderException 
{
	return connectionManager.createBulkLoader();
}
 
Example #28
Source File: SybaseIqNativeDatabaseType.java    From reladomo with Apache License 2.0 4 votes vote down vote up
@Override
public BulkLoader createBulkLoader(String dbLoadDir, String appLoadDir) throws BulkLoaderException
{
    return new SybaseIqNativeBulkLoader(this, dbLoadDir, appLoadDir);
}
 
Example #29
Source File: SybaseIqDatabaseType.java    From reladomo with Apache License 2.0 4 votes vote down vote up
public BulkLoader createBulkLoader(String dbLoadDir, String appLoadDir) throws BulkLoaderException
{
    return new SybaseIqBulkLoader(this, dbLoadDir, appLoadDir);
}
 
Example #30
Source File: SybaseIqDatabaseType.java    From reladomo with Apache License 2.0 4 votes vote down vote up
@Deprecated
public BulkLoader createBulkLoader(Connection connection, String user, String password, String hostName, int port) throws BulkLoaderException
{
    throw new RuntimeException("IQ requires a shared directory. Use the method with the extra parameters");
}