|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.crs.configuration.deegree.db.CRSRemover
public class CRSRemover
The CRSRemover class deletes a CRS from the database. The provided CRS if first identified with the one
in the database via its code (every CRS needs to have a code). Identifiable objects other than CRSs (axes, datums,
ellipsoids, etc.) happen to not have codes all the time and thus will not be identified ( hence removed) in these
cases. Before an object is removed, a check that no other object references it is done.
| Field Summary | |
|---|---|
(package private) Connection |
connection
|
| Constructor Summary | |
|---|---|
CRSRemover()
CRSRemover constructor |
|
| Method Summary | |
|---|---|
void |
closeConnection()
Close the database connection |
(package private) int |
getInternalID(CRSIdentifiable identifiable)
Determines the database internal ID of the provided CRSIdentifiable object based on the
CRSCodeType that it has |
static void |
main(String[] args)
Command-line tool for removing a CRS from the CRS db. |
(package private) void |
removeAxis(Axis axis)
Removes from the database the provided axis object |
(package private) void |
removeCRS(CoordinateSystem crs)
Removes a CRS from the database. |
void |
removeCRSList(List<CoordinateSystem> crsList)
Removes all the crs's provided as the arguments list |
(package private) void |
removeEllipsoid(Ellipsoid ellipsoid)
Deletes the provided ellipsoid object from the database. |
(package private) void |
removeGeodeticDatum(GeodeticDatum datum)
Removes from the database the geodetic datum provided |
(package private) void |
removeHelmert(Helmert helmert)
Deletes the provided Helmert transformation object from the database. |
(package private) void |
removeIdentifiableAttributes(int internalID)
Deletes the database table attributes: code, name, version, description, area. |
(package private) void |
removePrimeMeridian(PrimeMeridian pm)
Deletes the provided prime meridian object from the database. |
(package private) void |
removeProjection(Projection projection)
Removes from the database the provided projection |
(package private) void |
removeVerticalDatum(VerticalDatum verticalDatum)
Removes from the database the vertical datum provided |
void |
setConnection(Connection conn)
Set the connection locally. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
Connection connection
| Constructor Detail |
|---|
public CRSRemover()
CRSRemover constructor
| Method Detail |
|---|
int getInternalID(CRSIdentifiable identifiable)
throws SQLException
CRSIdentifiable object based on the
CRSCodeType that it has
identifiable - the CRSIdentifiable object
SQLException - if an SQLException occurs
void removeIdentifiableAttributes(int internalID)
throws SQLException
internalID - the internal database ID
SQLException - if an SQLException occurs
void removeEllipsoid(Ellipsoid ellipsoid)
throws SQLException
ellipsoid - the Ellipsoid object
SQLException - if an SQLException occurs
void removePrimeMeridian(PrimeMeridian pm)
throws SQLException
pm - the PrimeMeridian object
SQLException - if an SQLException occurs
void removeHelmert(Helmert helmert)
throws SQLException
helmert - the Helmert transformation object
SQLException - if an SQLException occurs
void removeGeodeticDatum(GeodeticDatum datum)
throws SQLException
datum - the GeodeticDatum object
SQLException - if an SQLException exception occurs
void removeVerticalDatum(VerticalDatum verticalDatum)
throws SQLException
verticalDatum - the VerticalDatum object
SQLException - if an SQLException occurs
void removeProjection(Projection projection)
throws SQLException
projection - the Projection object
SQLException - if an SQLException occurs
void removeAxis(Axis axis)
throws SQLException
axis - the Axis object
SQLException - if an SQLException exception occurs
void removeCRS(CoordinateSystem crs)
throws SQLException
crs - to be removed
SQLException - if an SQLException occurs
public void removeCRSList(List<CoordinateSystem> crsList)
throws SQLException
crsList - the list of s that will be removed from db
SQLException - if an SQLException occurspublic void setConnection(Connection conn)
conn - the database Connection
public void closeConnection()
throws SQLException
SQLException
public static void main(String[] args)
throws Exception
args -
Exception
Exception
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||