public class FolderHierarchyStore extends AbstractItemValueStore<Folder>
AbstractItemValueStore.ItemV<T>
JdbcAbstractStore.Creator<T>, JdbcAbstractStore.DataType, JdbcAbstractStore.EntityPopulator<T>, JdbcAbstractStore.SqlOperation<Res>, JdbcAbstractStore.StatementValues<T>
Modifier and Type | Field and Description |
---|---|
static JdbcAbstractStore.Creator<java.util.concurrent.atomic.AtomicInteger> |
MUTABLE_INT_CREATOR |
static JdbcAbstractStore.EntityPopulator<java.util.concurrent.atomic.AtomicInteger> |
MUTABLE_INT_POPULATOR |
datasource
Constructor and Description |
---|
FolderHierarchyStore(javax.sql.DataSource dataSource,
Container container) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
byId(java.lang.Long id) |
java.util.List<java.lang.String> |
byParentId(java.lang.Long pid) |
java.lang.String |
byPath(java.lang.String path) |
java.lang.String |
byUid(java.lang.Long uid) |
java.lang.String |
byUri(java.lang.String uri) |
void |
create(Item item,
Folder value) |
protected void |
createRoot() |
void |
delete(Item item) |
void |
deleteAll() |
void |
ensureParentExists(Folder f) |
Folder |
get(Item item) |
java.util.List<Folder> |
getMultiple(java.util.List<Item> items) |
void |
initContainer() |
protected void |
initSequence() |
void |
repair() |
ListResult<java.lang.String> |
search(FolderQuery q) |
void |
update(Item item,
Folder value) |
join
batchInsert, batchInsert, delete, doOrContinue, doOrFail, getConnection, insert, insert, insert, insert, insertAndReturn, insertWithSerial, inTransaction, lastInsertId, multiRowInsert, select, select, select, staticInTransaction, unique, unique, unique, unique, update, update, update, update, update
public static final JdbcAbstractStore.Creator<java.util.concurrent.atomic.AtomicInteger> MUTABLE_INT_CREATOR
public static final JdbcAbstractStore.EntityPopulator<java.util.concurrent.atomic.AtomicInteger> MUTABLE_INT_POPULATOR
public FolderHierarchyStore(javax.sql.DataSource dataSource, Container container)
public void initContainer() throws java.sql.SQLException
java.sql.SQLException
protected void initSequence() throws java.sql.SQLException
java.sql.SQLException
public void repair() throws java.sql.SQLException
java.sql.SQLException
protected void createRoot() throws java.sql.SQLException
java.sql.SQLException
public void create(Item item, Folder value) throws java.sql.SQLException
java.sql.SQLException
public void update(Item item, Folder value) throws java.sql.SQLException
java.sql.SQLException
public void delete(Item item) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<Folder> getMultiple(java.util.List<Item> items) throws java.sql.SQLException
getMultiple
in interface IItemValueStore<Folder>
getMultiple
in class AbstractItemValueStore<Folder>
java.sql.SQLException
public void deleteAll() throws java.sql.SQLException
java.sql.SQLException
public void ensureParentExists(Folder f) throws java.sql.SQLException
f
- java.sql.SQLException
public java.lang.String byUri(java.lang.String uri) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<java.lang.String> byParentId(java.lang.Long pid) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String byUid(java.lang.Long uid) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String byId(java.lang.Long id) throws java.sql.SQLException
java.sql.SQLException
public ListResult<java.lang.String> search(FolderQuery q) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String byPath(java.lang.String path) throws java.sql.SQLException
java.sql.SQLException
Copyright © 2021. All Rights Reserved.