com.nonesole.persistence.sql
Class SQLOperationsFactory

java.lang.Object
  extended by com.nonesole.persistence.sql.SQLOperationsFactory

public class SQLOperationsFactory
extends java.lang.Object

SQL operations factory. Outside can get classes which have same interface but different realization.

Version:
1.0 - build in 2009-07-20
Author:
JACK LEE

Method Summary
 ISQLOperations getBlobOperations()
          This bean will transform object to a prepared sql and execute it.It supports saving blob data,Objects which have blob data have to save blob data as byte array.(byte[])
static SQLOperationsFactory getInstance()
           
 ISQLOperations getSQLOperations()
          This bean will transform object to a pure string of sql and execute it.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SQLOperationsFactory getInstance()

getSQLOperations

public ISQLOperations getSQLOperations()
This bean will transform object to a pure string of sql and execute it.

Returns:
ISQLOperations object

getBlobOperations

public ISQLOperations getBlobOperations()
This bean will transform object to a prepared sql and execute it.It supports saving blob data,Objects which have blob data have to save blob data as byte array.(byte[])

Returns:
ISQLOperations object