public class TableImpl<E> extends com.ohmdb.dsl.TableDSL<E> implements com.ohmdb.api.Table<E>, TableInternals<E>
| Constructor and Description |
|---|
TableImpl(OhmDBImpl db,
Class<E> clazz,
com.ohmdb.abstracts.DataStore store,
com.ohmdb.abstracts.IdColl ids,
Transactor transactor,
OhmDBStats stats,
com.ohmdb.abstracts.LockManager lockManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTrigger(com.ohmdb.api.TriggerAction action,
com.ohmdb.api.Trigger<E> trigger) |
com.ohmdb.abstracts.Any<E> |
all() |
void |
clear() |
void |
commit() |
<T> void |
createIndexOn(T property) |
<T> void |
createIndexOn(T property,
com.ohmdb.api.Transformer<T> transformer) |
void |
createIndexOnNamed(String propertyName) |
<T> void |
createIndexOnNamed(String propertyName,
com.ohmdb.api.Transformer<T> transformer) |
void |
delete(long id) |
void |
fill(long id,
String columnName,
Object value) |
long[] |
find(com.ohmdb.api.SearchCriteria criteria) |
void |
forEach(long[] ids,
com.ohmdb.api.Visitor<E> visitor) |
void |
forEach(com.ohmdb.api.Visitor<E> visitor) |
E |
get(long id) |
E[] |
getAll(long... ids) |
Class<E> |
getClazz() |
ReentrantReadWriteLock |
getLock() |
long[] |
ids() |
<T> com.ohmdb.api.CustomIndex<E,T> |
index(com.ohmdb.api.Mapper<E,T> mapper,
Object... properties) |
long |
insert(E entity) |
long |
insert(Map<String,Object> properties) |
com.ohmdb.abstracts.JokerCreator |
jokerator() |
void |
load(long id,
E entity) |
<T> com.ohmdb.api.CustomIndex<E,T> |
multiIndex(com.ohmdb.api.Mapper<E,T[]> mapper,
Object... properties) |
String |
name() |
String |
nameOf(Object property) |
void |
print() |
PropertyInfo[] |
props() |
E |
queryHelper() |
Object |
read(long id,
String col) |
void |
revertDelete(long id,
int row) |
void |
revertDeleteCell(long id,
int row,
PropertyInfo prop,
Object value) |
void |
rollback() |
void |
set(long id,
String col,
Object value) |
void |
setInsider(com.ohmdb.abstracts.DbInsider insider) |
int |
size() |
String |
toString() |
void |
update(E entity) |
void |
update(long id,
E entity) |
void |
update(long id,
Map<String,Object> properties) |
void |
updateObj(Object entity) |
com.ohmdb.api.Ids<E> |
withIds(long... ids) |
public TableImpl(OhmDBImpl db, Class<E> clazz, com.ohmdb.abstracts.DataStore store, com.ohmdb.abstracts.IdColl ids, Transactor transactor, OhmDBStats stats, com.ohmdb.abstracts.LockManager lockManager)
public void clear()
clear in interface com.ohmdb.api.Table<E>public long[] find(com.ohmdb.api.SearchCriteria criteria)
find in interface com.ohmdb.api.Table<E>public long insert(Map<String,Object> properties)
insert in interface com.ohmdb.api.Table<E>public void delete(long id)
delete in interface com.ohmdb.api.Table<E>public void revertDelete(long id,
int row)
public void revertDeleteCell(long id,
int row,
PropertyInfo prop,
Object value)
public void print()
print in interface com.ohmdb.api.Table<E>public int size()
public void update(long id,
E entity)
update in interface com.ohmdb.api.Table<E>public void update(long id,
Map<String,Object> properties)
update in interface com.ohmdb.api.Table<E>public void set(long id,
String col,
Object value)
set in interface com.ohmdb.api.Table<E>public String nameOf(Object property)
nameOf in interface com.ohmdb.api.Table<E>public void fill(long id,
String columnName,
Object value)
fill in interface TableInternals<E>public ReentrantReadWriteLock getLock()
getLock in interface TableInternals<E>public void commit()
commit in interface TableInternals<E>public void rollback()
rollback in interface TableInternals<E>public Class<E> getClazz()
getClazz in interface TableInternals<E>public void setInsider(com.ohmdb.abstracts.DbInsider insider)
setInsider in interface TableInternals<E>public long[] ids()
ids in interface com.ohmdb.api.Ids<E>public void updateObj(Object entity)
updateObj in interface TableInternals<E>public com.ohmdb.abstracts.JokerCreator jokerator()
jokerator in interface TableInternals<E>public com.ohmdb.api.Ids<E> withIds(long... ids)
withIds in interface com.ohmdb.api.Table<E>public <T> void createIndexOn(T property)
createIndexOn in interface com.ohmdb.api.Table<E>public void createIndexOnNamed(String propertyName)
createIndexOnNamed in interface com.ohmdb.api.Table<E>public <T> void createIndexOn(T property,
com.ohmdb.api.Transformer<T> transformer)
createIndexOn in interface com.ohmdb.api.Table<E>public <T> void createIndexOnNamed(String propertyName, com.ohmdb.api.Transformer<T> transformer)
createIndexOnNamed in interface com.ohmdb.api.Table<E>public void forEach(com.ohmdb.api.Visitor<E> visitor)
forEach in interface com.ohmdb.api.Table<E>forEach in interface TableInternals<E>public void forEach(long[] ids,
com.ohmdb.api.Visitor<E> visitor)
forEach in interface com.ohmdb.api.Table<E>forEach in interface TableInternals<E>public <T> com.ohmdb.api.CustomIndex<E,T> index(com.ohmdb.api.Mapper<E,T> mapper, Object... properties)
index in interface com.ohmdb.api.Table<E>public <T> com.ohmdb.api.CustomIndex<E,T> multiIndex(com.ohmdb.api.Mapper<E,T[]> mapper, Object... properties)
multiIndex in interface com.ohmdb.api.Table<E>public void addTrigger(com.ohmdb.api.TriggerAction action,
com.ohmdb.api.Trigger<E> trigger)
addTrigger in interface TableInternals<E>public PropertyInfo[] props()
props in interface TableInternals<E>Copyright © 2013–2014 Nikolche Mihajlovski. All rights reserved.