| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| Modifier and Type | Method and Description |
|---|---|
| public Class | Returns: an array of classes that this SnapshotGenerator might return upon snapshotting a given DatabaseObject type.When snapshotting a certain object type (e.g. a table), different types of objects might be discovered in the process. |
| public int | Returns: An integer of PRIORITY_... constants indicating our capability and willingness to snapshotThe object type we are asked to snapshot objectType, Database The DBMS for which the snapshotting should be done database)Inquire if this SnapshotGenerator is capable of snapshotting objects of type objectType (e.g. Table, Index, View etc.) in the DBMS database (e.g. Oracle, Postgres, HyperSQL etc.) A return priority of > 0 will be interpreted as capable. |
| public Class | |
| public < The Java object type in which we are to return the snapshot result T extends DatabaseObject> T | Returns: An object of type T if our snapshot attempt is successfulThe object we should try to snapshot example, DatabaseSnapshot The Snapshot object representing the result of the snapshot operations so far snapshot, SnapshotGeneratorChain A list of other SnapshotGenerators that might be asked to try the same chain)Commands the SnapshotGenerator to create a snapshot (a representation of a database object in Java object form) of a specific database object. |
| PRIORITY_ADDITIONAL | back to summary |
|---|---|
| public static final int PRIORITY_ADDITIONAL | |
| PRIORITY_DATABASE | back to summary |
|---|---|
| public static final int PRIORITY_DATABASE | |
| PRIORITY_DEFAULT | back to summary |
|---|---|
| public static final int PRIORITY_DEFAULT | |
| PRIORITY_NONE | back to summary |
|---|---|
| public static final int PRIORITY_NONE | |
| addsTo | back to summary |
|---|---|
| public Class When snapshotting a certain object type (e.g. a table), different types of objects might be discovered in the process. (TODO: Which ones? Needs a more precise description.)
| |
| getPriority | back to summary |
|---|---|
| public int getPriority(Class<? extends DatabaseObject> objectType, Database database) Inquire if this SnapshotGenerator is capable of snapshotting objects of type objectType (e.g. Table, Index, View etc.) in the DBMS database (e.g. Oracle, Postgres, HyperSQL etc.) A return priority of > 0 will be interpreted as capable. The highest priority for an objectType-database combination wins.
| |
| replaces | back to summary |
|---|---|
| public Class Returns classes (and superclasses) that this SnapshotGenerator replaces. Return null or empty array to not affect the SnapshotGeneratorChain. | |
| snapshot | back to summary |
|---|---|
| public <T extends DatabaseObject> T snapshot(T example, DatabaseSnapshot snapshot, SnapshotGeneratorChain chain) throws DatabaseException, InvalidExampleException Commands the SnapshotGenerator to create a snapshot (a representation of a database object in Java object form) of a specific database object.
| |