org.dasein.persist.jdbc
Class Loader

java.lang.Object
  extended by org.dasein.persist.Execution
      extended by org.dasein.persist.jdbc.AutomatedSql
          extended by org.dasein.persist.jdbc.Loader

public class Loader
extends AutomatedSql


Nested Class Summary
 
Nested classes/interfaces inherited from class org.dasein.persist.jdbc.AutomatedSql
AutomatedSql.Criterion, AutomatedSql.Join, AutomatedSql.Operator, AutomatedSql.TranslationMethod
 
Field Summary
static String LISTING
           
static org.apache.log4j.Logger logger
           
 
Fields inherited from class org.dasein.persist.Execution
connection, DASEIN_PERSIST_PROPERTIES, data, dsn, PROPERTIES, results, statement
 
Constructor Summary
Loader()
           
 
Method Summary
 String getStatement()
           
 Object getValue(String col, int i, ResultSet rs)
           
 void prepare(Map<String,Object> params)
           
 Map<String,Object> run(Transaction xaction, Map<String,Object> params)
           
protected  void setOrder(boolean desc, String... cols)
           
 
Methods inherited from class org.dasein.persist.jdbc.AutomatedSql
getColumns, getCriteria, getEntityJoin, getJoin, getJoinEntities, getJoinTable, getSqlName, getSqlName, getSqlNameForClassName, getTableName, getTarget, getTranslationMethod, getTranslators, getTypes, init, isTranslating, loadStringTranslations, parseFields, prepare, prepare, prepareFor, prepareFor, removeStringTranslations, saveStringTranslation, setCriteria, setCriteria, setCriteria, setCriteria, setCustomTranslating, setEntityJoins, setTarget, setTarget, setTarget, setTranslating, setTranslating
 
Methods inherited from class org.dasein.persist.Execution
close, execute, getConnection, getDataSource, getDataSourceName, getDataSourceName, getIdentifier, getIdentifier, getInstance, getQuotes, getState, getStatement, getStatement, isReadOnly, isUpperCase, run, saveStringTranslation, setData, setDsn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static final org.apache.log4j.Logger logger

LISTING

public static final String LISTING
See Also:
Constant Field Values
Constructor Detail

Loader

public Loader()
Method Detail

getStatement

public String getStatement()
                    throws SQLException
Overrides:
getStatement in class Execution
Returns:
the SQL for this event
Throws:
SQLException

setOrder

protected void setOrder(boolean desc,
                        String... cols)

prepare

public void prepare(Map<String,Object> params)
             throws SQLException
Throws:
SQLException

run

public Map<String,Object> run(Transaction xaction,
                              Map<String,Object> params)
                       throws SQLException,
                              PersistenceException
Overrides:
run in class Execution
Throws:
SQLException
PersistenceException

getValue

public Object getValue(String col,
                       int i,
                       ResultSet rs)
                throws SQLException
Throws:
SQLException


Copyright © 2011 enStratus Networks LLC. All Rights Reserved.