public class Table
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static TransactionalDb |
db |
protected java.lang.String |
schema |
protected java.lang.String |
schemaTable |
protected java.lang.String |
table |
| Constructor and Description |
|---|
Table(java.lang.String schemaTable) |
| Modifier and Type | Method and Description |
|---|---|
java.sql.Connection |
getConnection() |
int |
getCount() |
int |
getCount(DbClause dbClause) |
int |
getCount(java.sql.PreparedStatement pstmt) |
int |
getRowCount() |
java.lang.String |
getSchemaTable() |
java.lang.String |
toString() |
void |
truncate() |
void |
truncateAll() |
protected static final TransactionalDb db
protected final java.lang.String schema
protected final java.lang.String table
protected final java.lang.String schemaTable
public final java.sql.Connection getConnection()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void truncate()
public final void truncateAll()
public final java.lang.String getSchemaTable()
public final java.lang.String toString()
toString in class java.lang.Objectpublic int getCount()
public int getCount(DbClause dbClause)
public final int getRowCount()
public final int getCount(java.sql.PreparedStatement pstmt)
throws java.sql.SQLException
java.sql.SQLException