public class OhmDBImpl
extends com.ohmdb.dsl.OhmDbDSL
implements com.ohmdb.api.Db, com.ohmdb.abstracts.DataSource, com.ohmdb.abstracts.DataImporter
| Modifier and Type | Method and Description |
|---|---|
<T> com.ohmdb.api.TriggerCreator<T> |
after(Class<T> type) |
<T> com.ohmdb.api.Ids<T> |
all(long... ids) |
<T> com.ohmdb.api.TriggerCreator<T> |
before(Class<T> type) |
void |
commit() |
com.ohmdb.api.SearchCriteria |
crit(String columnName,
com.ohmdb.api.Op op,
Object value) |
void |
delete(long id) |
void |
deleteRelsInTx(long id,
com.ohmdb.abstracts.DatastoreTransaction tx) |
byte[] |
exportRecord(long id) |
void |
failure(Throwable e) |
<T> T |
get(long id) |
com.ohmdb.dsl.join.LinkMatcher |
getLinkMatcher() |
<T> com.ohmdb.api.Ids<T> |
ids(long... ids) |
void |
importRecord(long id,
byte[] bytes) |
long |
insert(Object entity) |
Object |
read(long id) |
com.ohmdb.abstracts.RWRelation |
relation(String name) |
com.ohmdb.abstracts.RWRelation |
relation(com.ohmdb.api.Table<?> from,
String name,
com.ohmdb.api.Table<?> to) |
protected <FROM,TO> com.ohmdb.abstracts.RWRelation |
relation(com.ohmdb.api.Table<FROM> from,
String name,
com.ohmdb.api.Table<TO> to,
boolean symmetric,
boolean manyFroms,
boolean manyTos) |
void |
rollback() |
void |
shutdown() |
com.ohmdb.api.Transaction |
startTransaction() |
void |
stop() |
<T> com.ohmdb.api.Table<T> |
table(Class<T> clazz) |
<T> com.ohmdb.api.Table<T> |
table(String fullClassname) |
<T> void |
trigger(Class<T> type,
com.ohmdb.api.TriggerAction action,
com.ohmdb.api.Trigger<T> trigger) |
void |
update(Object entity) |
fullJoin, join, leftJoin, manyToMany, manyToManySymmetric, manyToOne, oneToMany, oneToOne, oneToOneSymmetric, param, rightJoinpublic OhmDBImpl(String filename)
public OhmDBImpl()
public com.ohmdb.api.Transaction startTransaction()
startTransaction in interface com.ohmdb.api.Dbpublic <T> com.ohmdb.api.Table<T> table(Class<T> clazz)
table in interface com.ohmdb.api.Dbpublic <T> com.ohmdb.api.Table<T> table(String fullClassname)
table in interface com.ohmdb.api.Dbpublic void rollback()
public void commit()
public com.ohmdb.abstracts.RWRelation relation(com.ohmdb.api.Table<?> from,
String name,
com.ohmdb.api.Table<?> to)
protected <FROM,TO> com.ohmdb.abstracts.RWRelation relation(com.ohmdb.api.Table<FROM> from,
String name,
com.ohmdb.api.Table<TO> to,
boolean symmetric,
boolean manyFroms,
boolean manyTos)
relation in class com.ohmdb.dsl.OhmDbDSLpublic void delete(long id)
delete in interface com.ohmdb.api.Dbpublic void update(Object entity)
update in interface com.ohmdb.api.Dbpublic <T> com.ohmdb.api.TriggerCreator<T> before(Class<T> type)
before in interface com.ohmdb.api.Dbpublic <T> com.ohmdb.api.TriggerCreator<T> after(Class<T> type)
after in interface com.ohmdb.api.Dbpublic <T> void trigger(Class<T> type, com.ohmdb.api.TriggerAction action, com.ohmdb.api.Trigger<T> trigger)
trigger in interface com.ohmdb.api.Dbpublic com.ohmdb.abstracts.RWRelation relation(String name)
public com.ohmdb.api.SearchCriteria crit(String columnName, com.ohmdb.api.Op op, Object value)
crit in interface com.ohmdb.api.Dbpublic <T> com.ohmdb.api.Ids<T> ids(long... ids)
ids in interface com.ohmdb.api.Dbpublic <T> com.ohmdb.api.Ids<T> all(long... ids)
all in interface com.ohmdb.api.Dbpublic void stop()
public void shutdown()
shutdown in interface com.ohmdb.api.Dbpublic com.ohmdb.dsl.join.LinkMatcher getLinkMatcher()
public byte[] exportRecord(long id)
public void importRecord(long id,
byte[] bytes)
importRecord in interface com.ohmdb.abstracts.DataImporterpublic Object read(long id)
read in interface com.ohmdb.abstracts.DataSourcepublic void deleteRelsInTx(long id,
com.ohmdb.abstracts.DatastoreTransaction tx)
public void failure(Throwable e)
public long insert(Object entity)
insert in interface com.ohmdb.api.Dbpublic <T> T get(long id)
get in interface com.ohmdb.api.DbCopyright © 2013–2014 Nikolche Mihajlovski. All rights reserved.