R - DB rowC - DB columnpublic abstract class Engine<R,C> extends Object implements SQLConverter<R,C>, Metadata
| Modifier | Constructor and Description |
|---|---|
|
Engine() |
protected |
Engine(Class<?> grammar) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
beginTransaction()
Begin transaction
|
void |
check(org.vesalainen.parser.util.InputReader reader) |
void |
check(org.vesalainen.parser.util.InputReader reader,
SQLLocator locator) |
void |
check(String sql) |
protected void |
check(String funcName,
int len,
int min,
int max) |
abstract void |
commitTransaction()
Commit transaction
|
ColumnReference |
createFunction(ColumnReference inner,
String funcName,
Number number,
Number... args) |
ColumnReference |
createFunction(ColumnReference inner,
String funcName,
String... args)
Returns a created function
|
protected Table<R,C> |
createTable(String schema,
String tablename,
String correlationName)
Factory method for creating Table
|
protected TableContext<R,C> |
createTableContext(Table<R,C> table,
ArrayMap<Table<R,C>,TableContext<R,C>> others)
Factory method for creating TableContext
|
abstract void |
delete(Collection<R> rows)
Delete collection of rows
|
FetchResult<R,C> |
describe(String tablename) |
FetchResult<R,C> |
execute(InputStream is) |
FetchResult<R,C> |
execute(String sql) |
abstract void |
exit()
Application is about to exit
|
abstract Collection<R> |
fetch(Table<R,C> table)
Non joined fetch
|
abstract Collection<R> |
fetch(TableContext<R,C> tableContext,
boolean update)
Joined fetch
|
abstract Class<? extends C> |
getDefaultPlaceholderType()
Returns the default placeholder type.
|
protected TableContextComparator |
getTableContextComparator()
Factory method for creating TableContextComparator
|
abstract void |
insert(InsertStatement<R,C> insertStatement)
Execute insert statement
|
Statement |
prepare(InputStream is) |
Statement |
prepare(String sql) |
abstract void |
rollbackTransaction()
Rolls back transaction
|
OrderedFetchResult<R,C> |
select(SelectStatement<R,C> select) |
UpdateableFetchResult<R,C> |
selectForUpdate(SelectStatement<R,C> select) |
FetchResult<R,C> |
show(String identifier) |
abstract void |
update(Collection<R> rows)
Update rows.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvert, convert, convertDate, convertTime, convertTimestamp, get, getComparator, getUpdateable, setgetTableMetadata, getTablespublic Engine()
protected Engine(Class<?> grammar)
public Statement prepare(InputStream is)
public FetchResult<R,C> show(String identifier)
public FetchResult<R,C> describe(String tablename)
public void check(String sql)
public void check(org.vesalainen.parser.util.InputReader reader)
public void check(org.vesalainen.parser.util.InputReader reader,
SQLLocator locator)
public FetchResult<R,C> execute(String sql)
public FetchResult<R,C> execute(InputStream is)
public UpdateableFetchResult<R,C> selectForUpdate(SelectStatement<R,C> select)
public OrderedFetchResult<R,C> select(SelectStatement<R,C> select)
protected TableContextComparator getTableContextComparator()
protected Table<R,C> createTable(String schema, String tablename, String correlationName)
protected TableContext<R,C> createTableContext(Table<R,C> table, ArrayMap<Table<R,C>,TableContext<R,C>> others)
table - Current tableothers - Connection map to other joining tablespublic abstract void beginTransaction()
public abstract void commitTransaction()
public abstract void delete(Collection<R> rows)
rows - public abstract Collection<R> fetch(Table<R,C> table)
table - Fetched tablepublic abstract Collection<R> fetch(TableContext<R,C> tableContext, boolean update)
tableContext - update - If true the resulting rows will be updated.public abstract void insert(InsertStatement<R,C> insertStatement)
insertStatement - public abstract void rollbackTransaction()
public abstract void update(Collection<R> rows)
rows - public abstract void exit()
public abstract Class<? extends C> getDefaultPlaceholderType()
public ColumnReference createFunction(ColumnReference inner, String funcName, String... args)
funcName - inner - public ColumnReference createFunction(ColumnReference inner, String funcName, Number number, Number... args)
protected void check(String funcName, int len, int min, int max)
Copyright © 2014. All rights reserved.