public class SdoGeorAdminPKG
extends java.lang.Object
Note that all methods in this class are transactional, which means that no commit statement is issued implicitly in each method.
The following is an example of how to use this class:
//initialize an instance of SdoGeorAdminPKG SdoGeorAdminPKG pkg=new SdoGeorAdminPKG(connection); //do upgrade pkg.upgradeGeoRaster();
Constructor and Description |
---|
SdoGeorAdminPKG(java.sql.Connection conn)
Constructs an
SdoGeorAdminPKG object using the given connection. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
checkSysdataEntries()
Checks the USER_SDO_GEOR_SYSDATA view for any invalid entries.
|
java.sql.Connection |
getConnection()
Returns a connection which points to target database.
|
boolean |
isRDTNameUnique(java.lang.String rdtName)
Checks if the specified raster data table (RDT) name is unique among RDT names in the database.
|
java.lang.String |
isUpgradeNeeded()
Checks the GeoRaster system data entries and GeoRaster data for the current schema.
|
java.lang.String |
listDanglingRasterData()
Checks the GeoRaster system data entries and GeoRaster data, and lists all dangling raster data.
|
java.lang.String |
listGeoRasterColumns()
Lists the GeoRaster columns defined in the current schema.
|
java.lang.String |
listGeoRasterObjects()
Lists the GeoRaster objects defined in the current schema.
|
java.lang.String |
listGeoRasterTables()
Lists the GeoRaster tables defined in the current schema.
|
java.lang.String |
listRDT()
Lists the raster data tables (RDTs) defined in the current schema.
|
java.lang.String |
listRegisteredRDT()
Lists registered raster data tables (RDTs) defined in the current schema.
|
java.lang.String |
listUnregisteredRDT()
Lists unregistered raster data tables (RDTs) defined in the current schema.
|
java.lang.String |
maintainSysdataEntries()
Checks the USER_SDO_GEOR_SYSDATA view for any invalid entries, and takes corrective action as appropriate.
|
void |
registerGeoRasterColumns()
Creates DML triggers for all GeoRaster columns defined in the current schema.
|
void |
registerGeoRasterObjects()
Registers all GeoRaster objects defined in the current schema.
|
void |
setConnection(java.sql.Connection conn)
Sets the connection which points to the target database.
|
java.lang.String |
upgradeGeoRaster()
Checks the GeoRaster system data entries and GeoRaster data for the current schema, and performs any corrective action as appropriate.
|
public SdoGeorAdminPKG(java.sql.Connection conn)
SdoGeorAdminPKG
object using the given connection.conn
- a JDBC connection.public void setConnection(java.sql.Connection conn)
conn
- a JDBC connectionpublic java.sql.Connection getConnection()
public java.lang.String checkSysdataEntries() throws java.lang.Exception
java.lang.Exception
public boolean isRDTNameUnique(java.lang.String rdtName) throws java.lang.Exception
rdtName
- Name to be checked for uniqueness.java.lang.Exception
public java.lang.String isUpgradeNeeded() throws java.lang.Exception
java.lang.Exception
public java.lang.String listGeoRasterColumns() throws java.lang.Exception
java.lang.Exception
public java.lang.String listGeoRasterObjects() throws java.lang.Exception
java.lang.Exception
public java.lang.String listGeoRasterTables() throws java.lang.Exception
java.lang.Exception
public java.lang.String listDanglingRasterData() throws java.lang.Exception
java.lang.Exception
public java.lang.String listRDT() throws java.lang.Exception
java.lang.Exception
public java.lang.String listRegisteredRDT() throws java.lang.Exception
java.lang.Exception
public java.lang.String listUnregisteredRDT() throws java.lang.Exception
java.lang.Exception
public java.lang.String maintainSysdataEntries() throws java.lang.Exception
java.lang.Exception
public void registerGeoRasterColumns() throws java.lang.Exception
java.lang.Exception
public void registerGeoRasterObjects() throws java.lang.Exception
java.lang.Exception
public java.lang.String upgradeGeoRaster() throws java.lang.Exception
java.lang.Exception