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
SQLException
public long size()
public void clear() throws SQLException
SQLException
public void createTable(CharSequence columns) throws SQLException
SQLException
public void createTransactionalTable(CharSequence columns) throws SQLException
SQLException
public void createTemporaryTable(CharSequence columns) throws SQLException
SQLException
public void execute(String command) throws SQLException
SQLException
public int executeUpdate(String command, String... parameters) throws SQLException
SQLException
public String getCatalog()
public String getName()
public String getSchema()
public void primaryIndex(String... columns) throws SQLException
SQLException
public void index(String... columns) throws SQLException
SQLException
public void dropIndex(String name) throws SQLException
SQLException
public boolean isCreated() throws SQLException
SQLException
public Map<String,List<String>> getIndexes() throws SQLException
SQLException
public long count() throws SQLException
SQLException
public void modified(int inserted, int deleted) throws SQLException
SQLException
public void optimize() throws SQLException
SQLException
public PreparedStatement prepareStatement(String sql) throws SQLException
SQLException
public void rollback() throws SQLException
SQLException
public List<Object[]> select(String... columns) throws SQLException
SQLException
public int[] aggregate(String... expressions) throws SQLException
SQLException
protected 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
SQLException
public void drop() throws SQLException
SQLException
Copyright © 2001-2016 Aduna. All Rights Reserved.