Package com.im.commons.db.ddl
Class DBTriggerInfo
- java.lang.Object
-
- com.im.commons.db.ddl.DBTriggerInfo
-
- All Implemented Interfaces:
java.io.Serializable
public class DBTriggerInfo extends java.lang.Object implements java.io.Serializable
why getCalogName() and getSchemaName() - are not these given by parent DFTableInfo? I thought DFTriggerInfo instances are obtained from table, so parent of table (schema, catalog) is given this way. - [LUK]: The information comes from trigger/tables repositories. It is not clear whether we have 100% guarantee it will be always same- Author:
- Luk
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DBTriggerInfo.TriggerEventType
I - insert (fired while inserting new row), U - update (fired while updating existing row), D - delete, and combinationsstatic class
DBTriggerInfo.TriggerFiringType
when: A - after update/insert action, B - beforestatic class
DBTriggerInfo.TriggerProperty
Optional attributes of trigger, which are loaded from db metadata repositories.
-
Constructor Summary
Constructors Constructor Description DBTriggerInfo()
DBTriggerInfo(java.lang.String calogName, java.lang.String qualifiedName, java.lang.String schemaName, java.lang.String simpleName, java.lang.String source, DBTriggerInfo.TriggerFiringType firingType, DBTriggerInfo.TriggerEventType event, java.lang.String tableName, java.util.Map<DBTriggerInfo.TriggerProperty,java.lang.String> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getCalogName()
DBTriggerInfo.TriggerEventType
getEvent()
DBTriggerInfo.TriggerFiringType
getFiringType()
java.util.Map<DBTriggerInfo.TriggerProperty,java.lang.String>
getProperties()
java.lang.String
getQualifiedName()
java.lang.String
getSchemaName()
java.lang.String
getSimpleName()
java.lang.String
getSource()
java.lang.String
getTableName()
int
hashCode()
-
-
-
Constructor Detail
-
DBTriggerInfo
public DBTriggerInfo()
-
DBTriggerInfo
public DBTriggerInfo(java.lang.String calogName, java.lang.String qualifiedName, java.lang.String schemaName, java.lang.String simpleName, java.lang.String source, DBTriggerInfo.TriggerFiringType firingType, DBTriggerInfo.TriggerEventType event, java.lang.String tableName, java.util.Map<DBTriggerInfo.TriggerProperty,java.lang.String> properties)
-
-
Method Detail
-
getCalogName
public java.lang.String getCalogName()
-
getQualifiedName
public java.lang.String getQualifiedName()
-
getSchemaName
public java.lang.String getSchemaName()
-
getSimpleName
public java.lang.String getSimpleName()
-
getSource
public java.lang.String getSource()
-
getTableName
public java.lang.String getTableName()
-
getProperties
public java.util.Map<DBTriggerInfo.TriggerProperty,java.lang.String> getProperties()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getFiringType
public DBTriggerInfo.TriggerFiringType getFiringType()
-
getEvent
public DBTriggerInfo.TriggerEventType getEvent()
-
-