public class CorePostgreSqlQueries extends java.lang.Object implements CorePersistenceImpl
| Modifier and Type | Method and Description |
|---|---|
void |
checkDatabase() |
void |
checkDefaultEntries() |
void |
checkFields() |
void |
checkTables() |
static CorePostgreSqlQueries |
getInstance() |
<S> java.lang.Long |
insert(java.lang.Class<S> c,
S state) |
<S extends CommonState> |
selectQuery(java.lang.Class c,
java.util.List<java.lang.String> select,
java.util.List<WhereClause> where)
General select Query to retrieve all information for passed entity, can be used to return specified
data from any table.
|
<S> void |
update(java.lang.Class<S> c,
S state) |
public static CorePostgreSqlQueries getInstance()
public void checkDatabase()
throws java.sql.SQLException
checkDatabase in interface CorePersistenceImpljava.sql.SQLExceptionpublic void checkTables()
throws java.sql.SQLException
checkTables in interface CorePersistenceImpljava.sql.SQLExceptionpublic void checkFields()
throws java.sql.SQLException
checkFields in interface CorePersistenceImpljava.sql.SQLExceptionpublic void checkDefaultEntries()
throws java.sql.SQLException
checkDefaultEntries in interface CorePersistenceImpljava.sql.SQLExceptionpublic <S> void update(java.lang.Class<S> c,
S state)
update in interface CorePersistenceImplpublic <S> java.lang.Long insert(java.lang.Class<S> c,
S state)
insert in interface CorePersistenceImplpublic <S extends CommonState> java.util.List<S> selectQuery(java.lang.Class c, java.util.List<java.lang.String> select, java.util.List<WhereClause> where)
selectQuery in interface CorePersistenceImplS - Type extending CommonState to query and returnc - Class of entity to select fromwhere - where clauses