org.jtheque.core.managers.schema
Class AbstractSchema

java.lang.Object
  extended by org.jtheque.core.managers.schema.AbstractSchema
All Implemented Interfaces:
Comparable<Schema>, Schema

public abstract class AbstractSchema
extends Object
implements Schema

An abstract schema. The only thing this abstract class do is implementing the compareTo() method to ensure for good order in collections.

Author:
Baptiste Wicht

Constructor Summary
AbstractSchema()
           
 
Method Summary
 int compareTo(Schema other)
           
 boolean equals(Object obj)
           
 org.springframework.jdbc.core.simple.SimpleJdbcTemplate getJdbcTemplate()
          Return the jdbc template to execute JDBC request.
 int hashCode()
           
 String toString()
           
 void update(String request, Object... args)
          Update the the database executing the specified request.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jtheque.core.managers.schema.Schema
getDependencies, getId, getVersion, importDataFromHSQL, install, update
 

Constructor Detail

AbstractSchema

public AbstractSchema()
Method Detail

getJdbcTemplate

public org.springframework.jdbc.core.simple.SimpleJdbcTemplate getJdbcTemplate()
Return the jdbc template to execute JDBC request.

Returns:
The jdbc template.

update

public void update(String request,
                   Object... args)
Update the the database executing the specified request.

Parameters:
request - The request to execute.
args - The args to give to the request.

compareTo

public final int compareTo(Schema other)
Specified by:
compareTo in interface Comparable<Schema>

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public final String toString()
Overrides:
toString in class Object


Copyright © 2010 JTheque. All Rights Reserved.