Package oracle.streams
Class DefaultDDLLCR
- java.lang.Object
-
- oracle.streams.AbstractLCR
-
- oracle.streams.DefaultDDLLCR
-
public class DefaultDDLLCR extends AbstractLCR implements DDLLCR
The DefaultDDLLCR class provides an Oracle default implementation of the DDLLCR interface. A DDL LCR is a logical change record for a DDL operation.
-
-
Field Summary
-
Fields inherited from interface oracle.streams.LCR
ATTRIBUTE_ROOT_NAME, ATTRIBUTE_ROW_ID, ATTRIBUTE_SERIAL_NUM, ATTRIBUTE_SESSION_NUM, ATTRIBUTE_THREAD_NUM, ATTRIBUTE_TX_NAME, ATTRIBUTE_USERNAME
-
-
Constructor Summary
Constructors Constructor Description DefaultDDLLCR()
Constructs a DDLLCR object with NULL valuesDefaultDDLLCR(java.lang.String sourceDatabaseName, java.lang.String commandType, java.lang.String objectOwner, java.lang.String objectName, java.lang.String transactionId, byte[] tag, byte[] position, oracle.sql.DATE sourceTime)
Constructs a DDLLCR object with given LCR parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getBaseTableName()
Gets the base table name.java.lang.String
getBaseTableOwner()
Gets the base table owner.java.lang.String
getCurrentSchema()
Gets the current schema name.java.lang.String
getDDLText()
Gets the DDL statement text.java.lang.String
getEditionName()
Gets the edition name.java.lang.String
getLogonUser()
Gets the logon user name.java.lang.String
getObjectType()
Gets the object type.void
setBaseTableName(java.lang.String baseTableName)
Sets the base table name.void
setBaseTableOwner(java.lang.String baseTableOwner)
Sets the base table owner.void
setCurrentSchema(java.lang.String currentSchema)
Sets the current schema.void
setDDLText(java.lang.String ddlText)
Sets the DDL statement text.void
setEditionName(java.lang.String editionName)
Sets the edition name.void
setLogonUser(java.lang.String logonUser)
Sets the logon user name.void
setObjectType(java.lang.String objectType)
Sets the object type.-
Methods inherited from class oracle.streams.AbstractLCR
getAttribute, getAttributeName, getAttributesList, getAttributeValue, getCommandType, getCommitSCN, getMessageTrackingLabel, getNumAttributes, getObjectName, getObjectOwner, getPosition, getRootName, getSCN, getSourceDatabaseName, getSourceTime, getTag, getTransactionId, setAttribute, setCommandType, setMessageTrackingLabel, setObjectName, setObjectOwner, setPosition, setRootName, setSourceDatabaseName, setSourceTime, setTag, setTransactionId
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface oracle.streams.LCR
getAttribute, getCommandType, getObjectName, getObjectOwner, getPosition, getSourceDatabaseName, getSourceTime, getTag, getTransactionId, setAttribute, setCommandType, setObjectName, setObjectOwner, setPosition, setSourceDatabaseName, setSourceTime, setTag, setTransactionId
-
-
-
-
Constructor Detail
-
DefaultDDLLCR
public DefaultDDLLCR()
Constructs a DDLLCR object with NULL values
-
DefaultDDLLCR
public DefaultDDLLCR(java.lang.String sourceDatabaseName, java.lang.String commandType, java.lang.String objectOwner, java.lang.String objectName, java.lang.String transactionId, byte[] tag, byte[] position, oracle.sql.DATE sourceTime)
Constructs a DDLLCR object with given LCR parameters- Parameters:
sourceDatabaseName
- source database name.commandType
- RowLCR command type.objectOwner
- object owner.objectName
- object name.transactionId
- transaction identifier (ID).tag
- LCR tag.position
- LCR positionsourceTime
- source timestamp.
-
-
Method Detail
-
setCurrentSchema
public void setCurrentSchema(java.lang.String currentSchema)
Sets the current schema.
The current schema is used if no schema is specified explicitly for the modified database objects in DDLText. If a schema is specified in DDLText that differs from the one specified for currentSchema, then the schema specified in DDLText is used.- Specified by:
setCurrentSchema
in interfaceDDLLCR
- Parameters:
currentSchema
- A string contains the current schema. Ensure that this parameter is set to a non-NULL value
-
setDDLText
public void setDDLText(java.lang.String ddlText)
Sets the DDL statement text.- Specified by:
setDDLText
in interfaceDDLLCR
- Parameters:
ddlText
- The DDL statement. Set this parameter to a non-NULL value.
-
setLogonUser
public void setLogonUser(java.lang.String logonUser)
Sets the logon user name.
The logon user is the user whose session executed the DDL statement.- Specified by:
setLogonUser
in interfaceDDLLCR
- Parameters:
logonUser
- The logon user name
-
setBaseTableOwner
public void setBaseTableOwner(java.lang.String baseTableOwner)
Sets the base table owner.
If the DDL statement is related to a table (such as CREATE TABLE and ALTER TABLE), or if the DDL statement involves a table (such as creating a trigger on a table), then baseTableOwner specifies the owner of the table. Otherwise, set baseTableOwner to NULL.- Specified by:
setBaseTableOwner
in interfaceDDLLCR
- Parameters:
baseTableOwner
- The base table owner
-
setBaseTableName
public void setBaseTableName(java.lang.String baseTableName)
Sets the base table name.
If the DDL statement is related to a table (such as CREATE TABLE and ALTER TABLE), or if the DDL statement involves a table (such as creating a trigger on a table), then baseTableName specifies the name of the table. Otherwise, set baseTableName to NULL.- Specified by:
setBaseTableName
in interfaceDDLLCR
- Parameters:
baseTableName
- The base table name
-
setObjectType
public void setObjectType(java.lang.String objectType)
Sets the object type.
The type of object on which the DDL statement was executed. See Oracle Call Interface Programmer's Guide for more information.- Specified by:
setObjectType
in interfaceDDLLCR
- Parameters:
objectType
- The object type
-
setEditionName
public void setEditionName(java.lang.String editionName) throws StreamsException
Sets the edition name.
The name of the edition in which the DDL statement was executed.- Specified by:
setEditionName
in interfaceDDLLCR
- Parameters:
editionName
- The edition name.- Throws:
StreamsException
- if error occurs when obtaining edition name
-
getCurrentSchema
public java.lang.String getCurrentSchema()
Gets the current schema name.
The current schema is used if no schema is specified explicitly for the modified database objects in DDLText. If a schema is specified in DDLText that differs from the one specified for currentSchema, then the schema specified in DDLText is used.- Specified by:
getCurrentSchema
in interfaceDDLLCR
- Returns:
- A string contains the current schema
-
getDDLText
public java.lang.String getDDLText()
Gets the DDL statement text.- Specified by:
getDDLText
in interfaceDDLLCR
- Returns:
- a String contains the DDL statement
-
getLogonUser
public java.lang.String getLogonUser()
Gets the logon user name.
The logon user is the user whose session executed the DDL statement.- Specified by:
getLogonUser
in interfaceDDLLCR
- Returns:
- a String contains the logon user name
-
getBaseTableOwner
public java.lang.String getBaseTableOwner()
Gets the base table owner.
If the DDL statement is related to a table (such as CREATE TABLE and ALTER TABLE), or if the DDL statement involves a table (such as creating a trigger on a table), then baseTableOowner specifies the owner of the table. Otherwise, NULL is returned.- Specified by:
getBaseTableOwner
in interfaceDDLLCR
- Returns:
- a String contains the base table owner
-
getBaseTableName
public java.lang.String getBaseTableName()
Gets the base table name.
If the DDL statement is related to a table (such as CREATE TABLE and ALTER TABLE), or if the DDL statement involves a table (such as creating a trigger on a table), then baseTableName specifies the name of the table. Otherwise, NULL is returned.- Specified by:
getBaseTableName
in interfaceDDLLCR
- Returns:
- a String contains the base table name
-
getObjectType
public java.lang.String getObjectType()
Gets the object type.
The type of object on which the DDL statement was executed. See Oracle Call Interface Programmer's Guide for more information.- Specified by:
getObjectType
in interfaceDDLLCR
- Returns:
- a String contains the object type
-
getEditionName
public java.lang.String getEditionName() throws StreamsException
Gets the edition name.
The name of the edition in which the DDL statement was executed.- Specified by:
getEditionName
in interfaceDDLLCR
- Returns:
- a String contains the edition name
- Throws:
StreamsException
- if error occurs when obtaining edition name
-
-