| com.flexive.core.storage.ContentStorage
All known Subclasses: com.flexive.core.storage.genericSQL.GenericHierarchicalStorage,
ContentStorage | public interface ContentStorage (Code) | | SQL storage interface for contents
author: Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) |
Method Summary | |
FxPK | contentCreate(Connection con, FxEnvironment env, StringBuilder sql, long newId, FxContent content) | FxPK | contentCreateVersion(Connection con, FxEnvironment env, StringBuilder sql, FxContent content) | FxContent | contentLoad(Connection con, FxPK pk, FxEnvironment env, StringBuilder sql) | void | contentRemove(Connection con, FxPK pk) Remove a content instance and all its versions, will throw an
Exception if it is referenced from other contents. | int | contentRemoveForType(Connection con, FxType type) Remove all instances of the given type. | void | contentRemoveVersion(Connection con, FxPK pk) Remove a content's version, will throw an
Exception if it is referenced from other contents. | FxPK | contentSave(Connection con, FxEnvironment env, StringBuilder sql, FxContent content, long fqnPropertyId) | String[] | getColumns(FxProperty prop) | FxContentSecurityInfo | getContentSecurityInfo(Connection con, FxPK pk) | FxContentVersionInfo | getContentVersionInfo(Connection con, long id) | List<FxPK> | getPKsForType(Connection con, FxType type, boolean onePkPerInstance) | int | getReferencedContentCount(Connection con, long id) | String | getTableName(FxProperty prop) | String | getUppercaseColumn(FxProperty prop) Get the (optional) uppercase column used for this data type. | void | maintenance(Connection con) Perform maintenance and cleanup tasks. | void | prepareSave(Connection con, FxContent content) | void | storeBinary(Connection con, long id, int version, int quality, String name, long length, InputStream binary) | boolean | uniqueConditionValid(Connection con, UniqueMode mode, FxProperty prop, long typeId, FxPK pk) | void | updateBinaryPreview(Connection con, long id, int version, int quality, int preview, int width, int height, long length, InputStream binary) | void | updateXPath(Connection con, long assignmentId, String originalXPath, String newXPath) |
getColumns | String[] getColumns(FxProperty prop)(Code) | | Get the database columns used for this data type
Parameters: prop - requested FxProperty the database columns used |
getPKsForType | List<FxPK> getPKsForType(Connection con, FxType type, boolean onePkPerInstance) throws FxDbException(Code) | | Get a list of all primary keys for the given FxType (can be a very long list!!!)
Parameters: con - an open and valid connection Parameters: type - the type to request the primary keys for Parameters: onePkPerInstance - return one primary key per instance (with max version) or one per actual version? list containing the primary keys throws: FxDbException - on errors |
getReferencedContentCount | int getReferencedContentCount(Connection con, long id) throws FxDbException(Code) | | Get the number of references that exist for the requested content id
Parameters: con - an open and valid Connection Parameters: id - id of the requested content number of references that exist for the requested content throws: FxDbException - on errors |
getTableName | String getTableName(FxProperty prop)(Code) | | Get the Database table name for this data type
Parameters: prop - FxPropery to request the table name for table name |
getUppercaseColumn | String getUppercaseColumn(FxProperty prop)(Code) | | Get the (optional) uppercase column used for this data type.
If no uppercase column is used, null is returned.
Parameters: prop - requested FxPropery uppercase column name or null |
maintenance | void maintenance(Connection con)(Code) | | Perform maintenance and cleanup tasks.
To be called periodically.
Parameters: con - an open and valid connection |
storeBinary | void storeBinary(Connection con, long id, int version, int quality, String name, long length, InputStream binary) throws FxApplicationException(Code) | | Create a new or update an existing binary
Parameters: con - an open and valid Connection Parameters: id - id of the binary Parameters: version - version of the binary Parameters: quality - quality of the binary Parameters: name - file name Parameters: length - length of the binary Parameters: binary - the binary throws: FxApplicationException - on errors |
uniqueConditionValid | boolean uniqueConditionValid(Connection con, UniqueMode mode, FxProperty prop, long typeId, FxPK pk)(Code) | | Check if a unique condition is valid for a propery
Parameters: con - an open and valid Connection Parameters: mode - UniqueMode Parameters: prop - property Parameters: typeId - type Parameters: pk - primary key (optional) if mode would be valid |
updateBinaryPreview | void updateBinaryPreview(Connection con, long id, int version, int quality, int preview, int width, int height, long length, InputStream binary)(Code) | | Create a new or update an existing binary
Parameters: con - an open and valid Connection Parameters: id - id of the binary Parameters: version - version of the binary Parameters: quality - quality of the binary Parameters: preview - the number of the preview to update (1..3) Parameters: width - width of the preview Parameters: height - height of the preview Parameters: length - length of the binary Parameters: binary - the binary |
|
|