|
|||||||||
| Home >> All >> org >> apache >> derby >> impl >> sql >> [ execute overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.derby.impl.sql.execute
Class DeleteConstantAction

java.lang.Objectorg.apache.derby.impl.sql.execute.WriteCursorConstantAction
org.apache.derby.impl.sql.execute.DeleteConstantAction
- All Implemented Interfaces:
- org.apache.derby.iapi.sql.execute.ConstantAction, java.io.Externalizable, org.apache.derby.iapi.services.io.Formatable, java.io.Serializable, org.apache.derby.iapi.services.io.TypedFormat
- public class DeleteConstantAction
- extends WriteCursorConstantAction
This class describes compiled constants that are passed into DeleteResultSets.
| Field Summary | |
long |
conglomId
This class implements Formatable. |
boolean |
deferred
|
(package private) org.apache.derby.iapi.sql.execute.ConstantAction[] |
dependentCActions
|
org.apache.derby.iapi.store.access.StaticCompiledOpenConglomInfo |
heapSCOCI
|
long[] |
indexCIDS
|
java.lang.String[] |
indexNames
|
org.apache.derby.iapi.store.access.StaticCompiledOpenConglomInfo[] |
indexSCOCIs
|
org.apache.derby.iapi.sql.dictionary.IndexRowGenerator[] |
irgs
|
int |
lockMode
|
(package private) int |
numColumns
This class implements Formatable. |
(package private) org.apache.derby.iapi.sql.ResultDescription |
resultDescription
|
boolean |
singleRowSource
|
java.util.Properties |
targetProperties
|
org.apache.derby.catalog.UUID |
targetUUID
|
| Fields inherited from interface org.apache.derby.iapi.sql.execute.ConstantAction |
RUNTIMESTATISTICS, STATISTICSTIMING |
| Constructor Summary | |
DeleteConstantAction()
Public niladic constructor. |
|
DeleteConstantAction(long conglomId,
org.apache.derby.iapi.store.access.StaticCompiledOpenConglomInfo heapSCOCI,
org.apache.derby.iapi.sql.dictionary.IndexRowGenerator[] irgs,
long[] indexCIDS,
org.apache.derby.iapi.store.access.StaticCompiledOpenConglomInfo[] indexSCOCIs,
org.apache.derby.iapi.sql.execute.ExecRow emptyHeapRow,
boolean deferred,
org.apache.derby.catalog.UUID targetUUID,
int lockMode,
FKInfo[] fkInfo,
TriggerInfo triggerInfo,
org.apache.derby.iapi.services.io.FormatableBitSet baseRowReadList,
int[] baseRowReadMap,
int[] streamStorableHeapColIds,
int numColumns,
boolean singleRowSource,
org.apache.derby.iapi.sql.ResultDescription resultDescription,
org.apache.derby.iapi.sql.execute.ConstantAction[] dependentCActions)
Make the ConstantAction for an DELETE statement. |
|
| Method Summary | |
void |
executeConstantAction(org.apache.derby.iapi.sql.Activation activation)
NOP routine. |
org.apache.derby.iapi.services.io.FormatableBitSet |
getBaseRowReadList()
|
int[] |
getBaseRowReadMap()
|
long |
getConglomerateId()
Get the conglomerate id for the changed heap. |
org.apache.derby.iapi.sql.execute.ExecRow |
getEmptyHeapRow(org.apache.derby.iapi.sql.conn.LanguageConnectionContext lcc)
Get emptyHeapRow |
FKInfo[] |
getFKInfo(org.apache.derby.iapi.sql.execute.ExecutionContext ec)
Gets the foreign key information for this constant action. |
java.lang.String |
getIndexNameFromCID(long indexCID)
get the index name given the conglomerate id of the index. |
java.lang.String[] |
getIndexNames()
|
java.lang.String |
getProperty(java.lang.String key)
The the value of the specified key, if it exists, from the targetProperties. |
int[] |
getStreamStorableHeapColIds()
|
java.util.Properties |
getTargetProperties()
Get the targetProperties from the constant action. |
TriggerInfo |
getTriggerInfo(org.apache.derby.iapi.sql.execute.ExecutionContext ec)
Basically, the same as getFKInfo but for triggers. |
int |
getTypeFormatId()
Get the formatID which corresponds to this class. |
boolean |
modifiesTableId(org.apache.derby.catalog.UUID tableId)
Does this constant action modify the passed in table uuid? By modify we mean add or drop things tied to this table (e.g. |
void |
readExternal(java.io.ObjectInput in)
Read this object from a stream of stored objects. |
boolean |
upToDate()
Reports whether these constants are up-to-date. |
void |
writeExternal(java.io.ObjectOutput out)
Write this object to a stream of stored objects. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
numColumns
int numColumns
- This class implements Formatable. But it is NOT used
across either major or minor releases. It is only
written persistently in stored prepared statements,
not in the replication stage. SO, IT IS OK TO CHANGE
ITS read/writeExternal.
dependentCActions
org.apache.derby.iapi.sql.execute.ConstantAction[] dependentCActions
resultDescription
org.apache.derby.iapi.sql.ResultDescription resultDescription
conglomId
public long conglomId
- This class implements Formatable. But it is NOT used
across either major or minor releases. It is only
written persistently in stored prepared statements,
not in the replication stage. SO, IT IS OK TO CHANGE
ITS read/writeExternal.
heapSCOCI
public org.apache.derby.iapi.store.access.StaticCompiledOpenConglomInfo heapSCOCI
irgs
public org.apache.derby.iapi.sql.dictionary.IndexRowGenerator[] irgs
indexCIDS
public long[] indexCIDS
indexSCOCIs
public org.apache.derby.iapi.store.access.StaticCompiledOpenConglomInfo[] indexSCOCIs
indexNames
public java.lang.String[] indexNames
deferred
public boolean deferred
targetProperties
public java.util.Properties targetProperties
targetUUID
public org.apache.derby.catalog.UUID targetUUID
lockMode
public int lockMode
singleRowSource
public boolean singleRowSource
| Constructor Detail |
DeleteConstantAction
public DeleteConstantAction()
- Public niladic constructor. Needed for Formatable interface to work.
DeleteConstantAction
public DeleteConstantAction(long conglomId,
org.apache.derby.iapi.store.access.StaticCompiledOpenConglomInfo heapSCOCI,
org.apache.derby.iapi.sql.dictionary.IndexRowGenerator[] irgs,
long[] indexCIDS,
org.apache.derby.iapi.store.access.StaticCompiledOpenConglomInfo[] indexSCOCIs,
org.apache.derby.iapi.sql.execute.ExecRow emptyHeapRow,
boolean deferred,
org.apache.derby.catalog.UUID targetUUID,
int lockMode,
FKInfo[] fkInfo,
TriggerInfo triggerInfo,
org.apache.derby.iapi.services.io.FormatableBitSet baseRowReadList,
int[] baseRowReadMap,
int[] streamStorableHeapColIds,
int numColumns,
boolean singleRowSource,
org.apache.derby.iapi.sql.ResultDescription resultDescription,
org.apache.derby.iapi.sql.execute.ConstantAction[] dependentCActions)
- Make the ConstantAction for an DELETE statement.
| Method Detail |
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
- Description copied from class:
WriteCursorConstantAction - Read this object from a stream of stored objects.
- Specified by:
readExternalin interfacejava.io.Externalizable- Overrides:
readExternalin classWriteCursorConstantAction
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
- Description copied from class:
WriteCursorConstantAction - Write this object to a stream of stored objects.
- Specified by:
writeExternalin interfacejava.io.Externalizable- Overrides:
writeExternalin classWriteCursorConstantAction
getTypeFormatId
public int getTypeFormatId()
- Get the formatID which corresponds to this class.
getFKInfo
public FKInfo[] getFKInfo(org.apache.derby.iapi.sql.execute.ExecutionContext ec) throws org.apache.derby.iapi.error.StandardException
- Gets the foreign key information for this constant action.
A full list of foreign keys was compiled into this constant
action. However, we prune this list at run time so that we
enforce only the foreign keys that we absolutely must.
What's going on here? Well, in certain contexts (REFRESH and
when intially booting a Target), we don't have to enforce some
foreign keys. We allow the ExecutionContext to rule on which
foreign keys are relevant and which aren't.
getTriggerInfo
public TriggerInfo getTriggerInfo(org.apache.derby.iapi.sql.execute.ExecutionContext ec) throws org.apache.derby.iapi.error.StandardException
- Basically, the same as getFKInfo but for triggers.
upToDate
public boolean upToDate()
- Reports whether these constants are up-to-date. This returns true
for homogenous Cloudscape/Cloudsync. For the Plugin, this may
return false;
- Specified by:
upToDatein interfaceorg.apache.derby.iapi.sql.execute.ConstantAction
executeConstantAction
public void executeConstantAction(org.apache.derby.iapi.sql.Activation activation) throws org.apache.derby.iapi.error.StandardException
- NOP routine. The work is done in InsertResultSet.
- Specified by:
executeConstantActionin interfaceorg.apache.derby.iapi.sql.execute.ConstantAction
getConglomerateId
public long getConglomerateId()
- Get the conglomerate id for the changed heap.
getEmptyHeapRow
public org.apache.derby.iapi.sql.execute.ExecRow getEmptyHeapRow(org.apache.derby.iapi.sql.conn.LanguageConnectionContext lcc) throws org.apache.derby.iapi.error.StandardException
- Get emptyHeapRow
getTargetProperties
public java.util.Properties getTargetProperties()
- Get the targetProperties from the constant action.
getProperty
public java.lang.String getProperty(java.lang.String key)
- The the value of the specified key, if it exists, from
the targetProperties.
getBaseRowReadList
public org.apache.derby.iapi.services.io.FormatableBitSet getBaseRowReadList()
getBaseRowReadMap
public int[] getBaseRowReadMap()
getStreamStorableHeapColIds
public int[] getStreamStorableHeapColIds()
getIndexNameFromCID
public java.lang.String getIndexNameFromCID(long indexCID)
- get the index name given the conglomerate id of the index.
getIndexNames
public java.lang.String[] getIndexNames()
modifiesTableId
public boolean modifiesTableId(org.apache.derby.catalog.UUID tableId)
- Does this constant action modify the passed in table
uuid? By modify we mean add or drop things tied to
this table (e.g. index, trigger, constraint). Things
like views or spses that reference this table don't
count.
- Specified by:
modifiesTableIdin interfaceorg.apache.derby.iapi.sql.execute.ConstantAction
|
|||||||||
| Home >> All >> org >> apache >> derby >> impl >> sql >> [ execute overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC