📄 datadictionary.java
字号:
public void updateConstraintDescriptor(ConstraintDescriptor cd, UUID formerUUID, int[] colsToSet, TransactionController tc) throws StandardException; /** * Get a SubKeyConstraintDescriptor from syskeys or sysforeignkeys for * the specified constraint id. For primary foreign and and unique * key constraints. * * @param constraintId The UUID for the constraint. * @param type The type of the constraint * (e.g. DataDictionary.FOREIGNKEY_CONSTRAINT) * * @return SubKeyConstraintDescriptor The Sub descriptor for the constraint. * * @exception StandardException Thrown on failure */ public SubKeyConstraintDescriptor getSubKeyConstraint(UUID constraintId, int type) throws StandardException; /** * Get a SPSDescriptor given its UUID. * * @param uuid The UUID * * * @return The SPSDescriptor for the constraint. * * @exception StandardException Thrown on failure */ public SPSDescriptor getSPSDescriptor(UUID uuid) throws StandardException; /** * Get the stored prepared statement descriptor given * a sps name. * * @param name The sps name. * @param sd The schema descriptor. * * @return The SPSDescriptor for the constraint. * * @exception StandardException Thrown on failure */ public SPSDescriptor getSPSDescriptor(String name, SchemaDescriptor sd) throws StandardException; /** * Get every statement in this database. * Return the SPSDescriptors in an list. * * @return the list of descriptors * * @exception StandardException Thrown on failure */ public List getAllSPSDescriptors() throws StandardException; /** * Get all the parameter descriptors for an SPS. * Look up the params in SYSCOLUMNS and turn them * into parameter descriptors. * * @param spsd sps descriptor * @param defaults the parameter defaults. If not null, * all the parameter defaults will be stuffed * in here. * * @return array of data type descriptors * * @exception StandardException Thrown on error */ public DataTypeDescriptor[] getSPSParams(SPSDescriptor spsd, Vector defaults) throws StandardException; /** * Adds the given SPSDescriptor to the data dictionary, * associated with the given table and constraint type. * * @param descriptor The descriptor to add * @param tc The transaction controller * @param wait To wait for lock or not * * @return Nothing * * @exception StandardException Thrown on error */ public void addSPSDescriptor ( SPSDescriptor descriptor, TransactionController tc, boolean wait ) throws StandardException; /** * Updates SYS.SYSSTATEMENTS with the info from the * SPSD. * * @param descriptor The descriptor to add * @param tc The transaction controller * @param recompile whether to recompile or invalidate * @param updateSYSCOLUMNS indicate whether syscolumns needs to be updated * or not. * @param wait If true, then the caller wants to wait for locks. False will be * @param firstCompilation first time SPS is getting compiled. * when we using a nested user xaction - we want to timeout right away if * the parent holds the lock. (bug 4821) * * @return Nothing * * @exception StandardException Thrown on error */ public void updateSPS( SPSDescriptor spsd, TransactionController tc, boolean recompile, boolean updateSYSCOLUMNS, boolean wait, boolean firstCompilation) throws StandardException; /** * Drops the given SPSDescriptor. * * @param descriptor The descriptor to drop * @param tc The TransactionController. * * @exception StandardException Thrown on failure */ public void dropSPSDescriptor(SPSDescriptor descriptor, TransactionController tc) throws StandardException; /** * Drops the given SPSDescriptor. * * @param uuid the statement uuid * @param tc The TransactionController. * * @exception StandardException Thrown on failure */ public void dropSPSDescriptor ( UUID uuid, TransactionController tc ) throws StandardException; /** * Invalidate all the stored plans in SYS.SYSSTATEMENTS. * @exception StandardException Thrown on error */ public void invalidateAllSPSPlans() throws StandardException; /** * Get a TriggerDescriptor given its UUID. * * @param uuid The UUID * * * @return The TriggerDescriptor for the constraint. * * @exception StandardException Thrown on failure */ public TriggerDescriptor getTriggerDescriptor(UUID uuid) throws StandardException; /** * Get the stored prepared statement descriptor given * a sps name. * * @param name The sps name. * @param sd The schema descriptor. * * @return The TriggerDescriptor for the constraint. * * @exception StandardException Thrown on failure */ public TriggerDescriptor getTriggerDescriptor(String name, SchemaDescriptor sd) throws StandardException; /** * Load up the trigger descriptor list for this table * descriptor and return it. If the descriptor list * is already loaded up, it is retuned without further * ado. * * @param table The table descriptor. * * @return The ConstraintDescriptorList for the table * * @exception StandardException Thrown on failure */ public GenericDescriptorList getTriggerDescriptors(TableDescriptor td) throws StandardException; /** * Update the trigger descriptor in question. Updates * every row in the base conglomerate. * * @param triggerd The Triggerescriptor * @param formerUUID The UUID for this column in SYSTRIGGERS, * may differ from what is in triggerd if this * is the column that is being set. * @param colsToSet Array of ints of columns to be modified, * 1 based. May be null (all cols). * @param tc The TransactionController to use * * @return Nothing. * * @exception StandardException Thrown on failure */ public void updateTriggerDescriptor ( TriggerDescriptor triggerd, UUID formerUUID, int[] colsToSet, TransactionController tc ) throws StandardException; /** * Drops the given TriggerDescriptor that is associated * with the given table and constraint type from the data dictionary. * * @param descriptor The descriptor to drop * @param tc The TransactionController. * * @exception StandardException Thrown on failure */ public void dropTriggerDescriptor ( TriggerDescriptor descriptor, TransactionController tc ) throws StandardException; /** * Get all of the ConglomerateDescriptors in the database and * hash them by conglomerate number. * This is useful as a performance optimization for the locking VTIs. * NOTE: This method will scan SYS.SYSCONGLOMERATES at READ COMMITTED. * It should really scan at READ UNCOMMITTED, but there is no such * thing yet. * * @param tc TransactionController for the transaction * * @return A Hashtable with all of the ConglomerateDescriptors * in the database hashed by conglomerate number. * * @exception StandardException Thrown on failure */ public Hashtable hashAllConglomerateDescriptorsByNumber(TransactionController tc) throws StandardException; /** * Get all of the TableDescriptors in the database and hash them by TableId * This is useful as a performance optimization for the locking VTIs. * NOTE: This method will scan SYS.SYSTABLES at READ COMMITTED. * It should really scan at READ UNCOMMITTED, but there is no such * thing yet. * * @param tc TransactionController for the transaction * * @return A Hashtable with all of the Table descriptors in the database * hashed by TableId * * * @exception StandardException Thrown on failure */ public Hashtable hashAllTableDescriptorsByTableId(TransactionController tc) throws StandardException; /** * Get a ConglomerateDescriptor given its UUID. If it is an index * conglomerate shared by at least another duplicate index, this returns * one of the ConglomerateDescriptors for those indexes. * * @param uuid The UUID * * * @return A ConglomerateDescriptor for the conglomerate. * * @exception StandardException Thrown on failure */ public ConglomerateDescriptor getConglomerateDescriptor(UUID uuid) throws StandardException; /** * Get an array of ConglomerateDescriptors given the UUID. If it is a * heap conglomerate or an index conglomerate not shared by a duplicate * index, the size of the return array is 1. * * @param uuid The UUID * * * @return An array of ConglomerateDescriptors for the conglomerate. * * @exception StandardException Thrown on failure */ public ConglomerateDescriptor[] getConglomerateDescriptors(UUID uuid) throws StandardException; /** * Get a ConglomerateDescriptor given its conglomerate number. If it is an * index conglomerate shared by at least another duplicate index, this * returns one of the ConglomerateDescriptors for those indexes. * * @param conglomerateNumber The conglomerate number. * * * @return A ConglomerateDescriptor for the conglomerate. Returns NULL if * no such conglomerate. * * @exception StandardException Thrown on failure */ public ConglomerateDescriptor getConglomerateDescriptor( long conglomerateNumber) throws StandardException; /** * Get an array of conglomerate descriptors for the given conglomerate * number. If it is a heap conglomerate or an index conglomerate not * shared by a duplicate index, the size of the return array is 1. * * @param conglomerateNumber The number for the conglomerate * we're interested in * * @return An array of ConglomerateDescriptors that share the requested * conglomerate. Returns size 0 array if no such conglomerate. * * @exception StandardException Thrown on failure */ public ConglomerateDescriptor[] getConglomerateDescriptors( long conglomerateNumber) throws StandardException; /** * Gets a conglomerate descriptor for the named index in the given schema, * getting an exclusive row lock on the matching row in * sys.sysconglomerates (for DDL concurrency) if requested. * * @param indexName The name of the index we're looking for * @param sd The schema descriptor * @param forUpdate Whether or not to get an exclusive row * lock on the row in sys.sysconglomerates. * * @return A ConglomerateDescriptor describing the requested * conglomerate. Returns NULL if no such conglomerate. * * @exception StandardException Thrown on failure */ public ConglomerateDescriptor getConglomerateDescriptor( String indexName, SchemaDescriptor sd, boolean forUpdate) throws StandardException; /** * Drops a conglomerate descriptor * * @param conglomerate The ConglomerateDescriptor for the conglomerate * @param tc TransactionController for the transaction * * @exception StandardException Thrown on failure */ public void dropConglomerateDescriptor( ConglomerateDescriptor conglomerate, TransactionController tc) throws StandardException; /** * Drops all conglomerates associated with a table. * * @param table The TableDescriptor of the table * @param tc TransactionController for the transaction * * @exception StandardException Thrown on failure */ public void dropAllConglomerateDescriptors( TableDescriptor td, TransactionController tc) throws StandardException; /**
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -