atg.adapter.gsa
Class BcpDBCopier

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.adapter.gsa.DBCopier
              extended by atg.adapter.gsa.BcpDBCopier
All Implemented Interfaces:
atg.naming.AbsoluteNameable, NameContextBindingListener, NameContextElement, atg.naming.NameContextParentable, NameResolver, AdminableService, atg.nucleus.Configured, ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, VariableArgumentApplicationLogging, ComponentNameResolver, Service, ServiceListener, java.util.EventListener

public class BcpDBCopier
extends DBCopier

A DB Copier for Sybase and Microsoft databases. This copier uses the bcp utility that is supported by both Microsoft SQL Server and Sybase Adaptive Server Enterprise.

This copier can generally be used with the default property settings, with the exception of maxTextOrImageSize which you will want to set to be no smaller than the largest text or image column in the tables being copied. See your DB vendor documentation for details.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Fields inherited from class atg.nucleus.GenericService
SERVICE_INFO_KEY
 
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging
DEFAULT_LOG_TRACE_STATUS
 
Fields inherited from interface atg.nucleus.logging.ApplicationLogging
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
 
Constructor Summary
BcpDBCopier()
           
 
Method Summary
 void doStartService()
          Start the service.
 int getMaxTextOrImageSize()
          Get property maxTextOrImageSize
 boolean getUseNativeMode()
          Get property useNativeMode
 boolean getUseTruncateTable()
          Get property useTruncateTable
 boolean isUseNativeMode()
          Test property useNativeMode
 boolean isUseTruncateTable()
          Test property useTruncateTable
 void setMaxTextOrImageSize(int pMaxTextOrImageSize)
          Set property maxTextOrImageSize
 void setUseNativeMode(boolean pUseNativeMode)
          Set property useNativeMode
 void setUseTruncateTable(boolean pUseTruncateTable)
          Set property useTruncateTable
 
Methods inherited from class atg.adapter.gsa.DBCopier
cleanupDirectory, copy, getCleanupDirectory, getCommandOutput, getDataFileSuffix, getDeleteDataFileName, getDestination, getDirectory, getExportCommand, getImportCommand, getSource, getSqlCommand, getTables, isCleanupDirectory, setCleanupDirectory, setDataFileSuffix, setDeleteDataFileName, setDestination, setDirectory, setExportCommand, setImportCommand, setSource, setSqlCommand, setTables
 
Methods inherited from class atg.nucleus.GenericService
addLogListener, createAdminServlet, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
 
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

BcpDBCopier

public BcpDBCopier()
Method Detail

setUseNativeMode

public void setUseNativeMode(boolean pUseNativeMode)
Set property useNativeMode

Parameters:
pUseNativeMode - new value to set

getUseNativeMode

public boolean getUseNativeMode()
Get property useNativeMode

Returns:
useNativeMode

isUseNativeMode

public boolean isUseNativeMode()
Test property useNativeMode

Returns:
useNativeMode

setMaxTextOrImageSize

public void setMaxTextOrImageSize(int pMaxTextOrImageSize)
Set property maxTextOrImageSize

Parameters:
pMaxTextOrImageSize - new value to set

getMaxTextOrImageSize

public int getMaxTextOrImageSize()
Get property maxTextOrImageSize

Returns:
maxTextOrImageSize

setUseTruncateTable

public void setUseTruncateTable(boolean pUseTruncateTable)
Set property useTruncateTable

Parameters:
pUseTruncateTable - new value to set

getUseTruncateTable

public boolean getUseTruncateTable()
Get property useTruncateTable

Returns:
useTruncateTable

isUseTruncateTable

public boolean isUseTruncateTable()
Test property useTruncateTable

Returns:
useTruncateTable

doStartService

public void doStartService()
Start the service. All this does is apply some default property settings.

Overrides:
doStartService in class GenericService