public class RdbmsTable extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_DELTA_TO_FORCE_OPTIMIZE |
static int |
total_opt |
| Constructor and Description |
|---|
RdbmsTable(String name) |
| Modifier and Type | Method and Description |
|---|---|
int[] |
aggregate(String... expressions) |
protected String |
buildClear() |
protected String |
buildCreateTable(CharSequence columns) |
protected String |
buildCreateTemporaryTable(CharSequence columns) |
protected String |
buildCreateTransactionalTable(CharSequence columns) |
protected String |
buildDropIndex(String name) |
protected String |
buildIndex(String... columns) |
protected String |
buildIndexName(String... columns)
Creates an index name based on the name of the columns and table that it's
supposed to index.
|
protected String |
buildLongIndex(String... columns) |
protected String |
buildOptimize() |
protected String |
buildPrimaryIndex(String... columns) |
void |
clear() |
void |
close() |
long |
count() |
void |
createTable(CharSequence columns) |
void |
createTemporaryTable(CharSequence columns) |
void |
createTransactionalTable(CharSequence columns) |
void |
drop() |
void |
dropIndex(String name) |
boolean |
equals(Object obj) |
void |
execute(String command) |
int |
executeUpdate(String command,
String... parameters) |
String |
getCatalog() |
Map<String,List<String>> |
getIndexes() |
String |
getName() |
String |
getSchema() |
int |
hashCode() |
void |
index(String... columns) |
boolean |
isCreated() |
void |
modified(int inserted,
int deleted) |
void |
optimize() |
protected boolean |
optimize(int delta,
long rowCount) |
PreparedStatement |
prepareStatement(String sql) |
void |
primaryIndex(String... columns) |
void |
rollback() |
List<Object[]> |
select(String... columns) |
void |
setConnection(Connection conn) |
long |
size() |
String |
toString() |
public static int total_opt
public static int MAX_DELTA_TO_FORCE_OPTIMIZE
public RdbmsTable(String name)
public void setConnection(Connection conn)
public void close()
throws SQLException
SQLExceptionpublic long size()
public void clear()
throws SQLException
SQLExceptionpublic void createTable(CharSequence columns) throws SQLException
SQLExceptionpublic void createTransactionalTable(CharSequence columns) throws SQLException
SQLExceptionpublic void createTemporaryTable(CharSequence columns) throws SQLException
SQLExceptionpublic void execute(String command) throws SQLException
SQLExceptionpublic int executeUpdate(String command, String... parameters) throws SQLException
SQLExceptionpublic String getCatalog()
public String getName()
public String getSchema()
public void primaryIndex(String... columns) throws SQLException
SQLExceptionpublic void index(String... columns) throws SQLException
SQLExceptionpublic void dropIndex(String name) throws SQLException
SQLExceptionpublic boolean isCreated()
throws SQLException
SQLExceptionpublic Map<String,List<String>> getIndexes() throws SQLException
SQLExceptionpublic long count()
throws SQLException
SQLExceptionpublic void modified(int inserted,
int deleted)
throws SQLException
SQLExceptionpublic void optimize()
throws SQLException
SQLExceptionpublic PreparedStatement prepareStatement(String sql) throws SQLException
SQLExceptionpublic void rollback()
throws SQLException
SQLExceptionpublic List<Object[]> select(String... columns) throws SQLException
SQLExceptionpublic int[] aggregate(String... expressions) throws SQLException
SQLExceptionprotected boolean optimize(int delta,
long rowCount)
protected String buildClear()
protected String buildCreateTable(CharSequence columns)
protected String buildCreateTransactionalTable(CharSequence columns)
protected String buildCreateTemporaryTable(CharSequence columns)
protected String buildIndexName(String... columns)
protected String buildOptimize() throws SQLException
SQLExceptionpublic void drop()
throws SQLException
SQLExceptionCopyright © 2001-2014 Aduna. All Rights Reserved.