| java.lang.Object org.mmbase.storage.implementation.database.DatabaseStorageManager org.mmbase.storage.implementation.database.ViewDatabaseStorageManager
ViewDatabaseStorageManager | public class ViewDatabaseStorageManager extends DatabaseStorageManager (Code) | | version: $Id: ViewDatabaseStorageManager.java,v 1.11 2007/03/02 21:03:05 nklasens Exp $ since: MMBase-1.8 |
create | public void create(MMObjectBuilder builder) throws StorageException(Code) | | Create a storage element to store the specified builder's objects.
Parameters: builder - the builder to create the storage element for throws: StorageException - if an error occurred during the creation of the storage element |
create | protected void create(Index index) throws StorageException(Code) | | Override the default version. An index should only be created if
all the fields are in this builder. Otherwise this will fail horrably.
|
createObject | protected void createObject(MMObjectNode node, MMObjectBuilder builder) throws StorageException(Code) | | This method inserts a new object in a specific builder, and registers the change.
This method makes it easier to implement relational databases, where you may need to update the node
in more than one builder.
Call this method for all involved builders if you use a relational database.
Parameters: node - The node to insert. The node already needs to have a (new) number assigned Parameters: builder - the builder to store the node throws: StorageException - if an error occurred during creation |
exists | public boolean exists() throws StorageException(Code) | | Determine if the basic storage elements exist
Basic storage elements include the 'object' storage (where all objects and their types are registered).
true if basic storage elements exist throws: StorageException - if an error occurred while querying the storage |
exists | public boolean exists(MMObjectBuilder builder) throws StorageException(Code) | | Determine if a storage element exists for storing the given builder's objects
Parameters: builder - the builder to check true if the storage element exists, false if it doesn't throws: StorageException - if an error occurred while querying the storage |
Methods inherited from org.mmbase.storage.implementation.database.DatabaseStorageManager | protected void addToTableNameCache(String name)(Code)(Java Doc) public void beginTransaction() throws StorageException(Code)(Java Doc) public void change(MMObjectNode node) throws StorageException(Code)(Java Doc) protected void change(MMObjectNode node, MMObjectBuilder builder) throws StorageException(Code)(Java Doc) protected void change(MMObjectNode node, MMObjectBuilder builder, String tableName, Collection<CoreField> changeFields)(Code)(Java Doc) public void change(MMObjectBuilder builder) throws StorageException(Code)(Java Doc) public void change(CoreField field) throws StorageException(Code)(Java Doc) protected File checkFile(File binaryFile, MMObjectNode node, CoreField field)(Code)(Java Doc) public void commit() throws StorageException(Code)(Java Doc) protected void commitChange(MMObjectNode node, String change)(Code)(Java Doc) public int convertLegacyBinaryFiles() throws org.mmbase.storage.search.SearchQueryException, SQLException(Code)(Java Doc) public int create(MMObjectNode node) throws StorageException(Code)(Java Doc) protected void create(MMObjectNode node, MMObjectBuilder builder) throws StorageException(Code)(Java Doc) protected void create(MMObjectNode node, List<CoreField> createFields, String tablename)(Code)(Java Doc) public void create(MMObjectBuilder builder) throws StorageException(Code)(Java Doc) public void create() throws StorageException(Code)(Java Doc) protected void create(Index index) throws StorageException(Code)(Java Doc) public void create(CoreField field) throws StorageException(Code)(Java Doc) protected void createIndex(Index index, String tablename)(Code)(Java Doc) protected void createIndices(CoreField field) throws StorageException(Code)(Java Doc) public int createKey() throws StorageException(Code)(Java Doc) protected void createSequence() throws StorageException(Code)(Java Doc) protected void createTable(MMObjectBuilder builder, List<CoreField> tableFields, String tableName)(Code)(Java Doc) public void delete(MMObjectNode node) throws StorageException(Code)(Java Doc) protected void delete(MMObjectNode node, MMObjectBuilder builder) throws StorageException(Code)(Java Doc) protected void delete(MMObjectNode node, MMObjectBuilder builder, List<CoreField> blobFileField, String tablename)(Code)(Java Doc) public synchronized void delete(MMObjectBuilder builder) throws StorageException(Code)(Java Doc) protected void delete(Index index) throws StorageException(Code)(Java Doc) public void delete(CoreField field) throws StorageException(Code)(Java Doc) protected void deleteIndices(CoreField field) throws StorageException(Code)(Java Doc) protected void executeUpdate(String query, MMObjectNode node, List<CoreField> fields) throws SQLException(Code)(Java Doc) protected void executeUpdateCheckConnection(String query, MMObjectNode node, List<CoreField> fields) throws SQLException(Code)(Java Doc) public boolean exists(MMObjectBuilder builder) throws StorageException(Code)(Java Doc) protected synchronized boolean exists(String tableName) throws StorageException(Code)(Java Doc) public boolean exists() throws StorageException(Code)(Java Doc) protected boolean exists(Index index, String tablename)(Code)(Java Doc) protected boolean exists(Index index) throws StorageException(Code)(Java Doc) protected void fillNode(MMObjectNode node, ResultSet result, MMObjectBuilder builder) throws StorageException(Code)(Java Doc) protected Connection getActiveConnection() throws SQLException(Code)(Java Doc) protected File getBinaryFile(MMObjectNode node, String fieldName)(Code)(Java Doc) public byte[] getBinaryValue(MMObjectNode node, CoreField field) throws StorageException(Code)(Java Doc) protected Blob getBlobFromDatabase(MMObjectNode node, CoreField field, boolean mayShorten)(Code)(Java Doc) protected Blob getBlobFromFile(MMObjectNode node, CoreField field, boolean mayShorten) throws StorageException(Code)(Java Doc) public Blob getBlobValue(MMObjectNode node, CoreField field) throws StorageException(Code)(Java Doc) public Blob getBlobValue(MMObjectNode node, CoreField field, boolean mayShorten) throws StorageException(Code)(Java Doc) protected Blob getBlobValue(ResultSet result, int index, CoreField field, boolean mayShorten) throws StorageException, SQLException(Code)(Java Doc) protected Boolean getBooleanValue(ResultSet result, int index, CoreField field) throws StorageException, SQLException(Code)(Java Doc) protected String getConstraintDefinition(CoreField field) throws StorageException(Code)(Java Doc) protected java.util.Date getDateTimeValue(ResultSet result, int index, CoreField field) throws StorageException, SQLException(Code)(Java Doc) protected String getFieldDefinition(CoreField field) throws StorageException(Code)(Java Doc) protected String getFieldList(Index index)(Code)(Java Doc) protected String getFieldTypeDefinition(CoreField field) throws StorageException(Code)(Java Doc) public InputStream getInputStreamValue(MMObjectNode node, CoreField field) throws StorageException(Code)(Java Doc) protected int getJDBCtoField(int jdbcType, int mmbaseType)(Code)(Java Doc) protected long getLogStartTime()(Code)(Java Doc) public MMObjectNode getNode(MMObjectBuilder builder, int number) throws StorageException(Code)(Java Doc) public int getNodeType(int number) throws StorageException(Code)(Java Doc) public String getStringValue(MMObjectNode node, CoreField field) throws StorageException(Code)(Java Doc) protected Object getStringValue(ResultSet result, int index, CoreField field, boolean mayShorten) throws StorageException, SQLException(Code)(Java Doc) public Object getValue(ResultSet result, int index, CoreField field, boolean mayShorten) throws StorageException(Code)(Java Doc) public double getVersion()(Code)(Java Doc) protected Object getXMLValue(ResultSet result, int index, CoreField field, boolean mayShorten) throws StorageException, SQLException(Code)(Java Doc) public void init(StorageManagerFactory factory) throws StorageException(Code)(Java Doc) protected boolean isPartOfBuilderDefinition(CoreField field)(Code)(Java Doc) public boolean isVerified(MMObjectBuilder builder)(Code)(Java Doc) final protected void logQuery(String query, long startTime)(Code)(Java Doc) protected void refresh(MMObjectNode node) throws StorageException(Code)(Java Doc) protected void releaseActiveConnection()(Code)(Java Doc) public boolean rollback() throws StorageException(Code)(Java Doc) protected void setBinaryValue(PreparedStatement statement, int index, Object objectValue, CoreField field, MMObjectNode node) throws StorageException, SQLException(Code)(Java Doc) protected void setBooleanValue(PreparedStatement statement, int index, Object value, CoreField field, MMObjectNode node) throws StorageException, SQLException(Code)(Java Doc) protected void setDateTimeValue(PreparedStatement statement, int index, Object value, CoreField field, MMObjectNode node) throws StorageException, SQLException(Code)(Java Doc) protected void setListValue(PreparedStatement statement, int index, Object value, CoreField field, MMObjectNode node) throws StorageException, SQLException(Code)(Java Doc) protected void setNodeValue(PreparedStatement statement, int index, Object nodeValue, CoreField field, MMObjectNode node) throws StorageException, SQLException(Code)(Java Doc) protected boolean setNullValue(PreparedStatement statement, int index, Object value, CoreField field, int type) throws StorageException, SQLException(Code)(Java Doc) protected void setNumericValue(PreparedStatement statement, int index, Object value, CoreField field, MMObjectNode node) throws StorageException, SQLException(Code)(Java Doc) protected Object setStringValue(PreparedStatement statement, int index, Object objectValue, CoreField field, MMObjectNode node) throws StorageException, SQLException(Code)(Java Doc) protected void setValue(PreparedStatement statement, int index, MMObjectNode node, CoreField field) throws StorageException, SQLException(Code)(Java Doc) protected void setXMLValue(PreparedStatement statement, int index, Object objectValue, CoreField field, MMObjectNode node) throws StorageException, SQLException(Code)(Java Doc) protected boolean shorten(CoreField field)(Code)(Java Doc) public int size(MMObjectBuilder builder) throws StorageException(Code)(Java Doc) public int size() throws StorageException(Code)(Java Doc) protected void storeBinaryAsFile(MMObjectNode node, CoreField field) throws StorageException(Code)(Java Doc) protected boolean tablesInheritFields()(Code)(Java Doc) protected void unloadShortedFields(MMObjectNode node, MMObjectBuilder builder)(Code)(Java Doc) public void verify(MMObjectBuilder builder) throws StorageException(Code)(Java Doc)
|
|
|