se.rupy.memory
Class Base
java.lang.Object
se.rupy.memory.Base
public class Base
- extends java.lang.Object
|
Constructor Summary |
Base()
|
|
Method Summary |
Connection |
connection(boolean transaction)
|
java.lang.Object |
find(java.lang.String sql,
Connection conn,
boolean update)
|
void |
init(Pool pool)
|
Pool |
pool()
|
java.util.LinkedList |
query(byte type,
boolean cache,
java.lang.String name,
java.lang.String sql)
|
java.util.LinkedList |
query(byte type,
java.lang.String name,
java.lang.String sql)
|
java.lang.Object |
reflect(int type)
|
Connection |
transaction()
|
boolean |
update(byte type,
java.lang.Object o)
|
boolean |
update(byte type,
java.lang.Object o,
Connection conn)
|
long |
value(java.lang.String sql)
|
long |
value(java.lang.String sql,
Connection conn)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SELECT
public static final byte SELECT
- See Also:
- Constant Field Values
INSERT
public static final byte INSERT
- See Also:
- Constant Field Values
UPDATE
public static final byte UPDATE
- See Also:
- Constant Field Values
DELETE
public static final byte DELETE
- See Also:
- Constant Field Values
WHERE
public static final byte WHERE
- See Also:
- Constant Field Values
FROM
public static final byte FROM
- See Also:
- Constant Field Values
Base
public Base()
init
public void init(Pool pool)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
pool
public Pool pool()
transaction
public Connection transaction()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
connection
public Connection connection(boolean transaction)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
value
public long value(java.lang.String sql)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
value
public long value(java.lang.String sql,
Connection conn)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
find
public java.lang.Object find(java.lang.String sql,
Connection conn,
boolean update)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
update
public boolean update(byte type,
java.lang.Object o)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
update
public boolean update(byte type,
java.lang.Object o,
Connection conn)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
query
public java.util.LinkedList query(byte type,
java.lang.String name,
java.lang.String sql)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
query
public java.util.LinkedList query(byte type,
boolean cache,
java.lang.String name,
java.lang.String sql)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
reflect
public java.lang.Object reflect(int type)
throws java.sql.SQLException
- Throws:
java.sql.SQLException