Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.ejb.disguisebucket.persist
Interface DisguiseBucketPersist  view DisguiseBucketPersist download DisguiseBucketPersist.java

All Superinterfaces:
com.flexstor.ejb.EjbObject, javax.ejb.EJBObject, java.rmi.Remote

public interface DisguiseBucketPersist
extends com.flexstor.ejb.EjbObject

This is the client interface for obtaining a DisguiseBucket Data Object.

Since:
FlexDB 3.0
Version:
$Id: DisguiseBucketPersist.java,v 1.2 2003/08/11 02:22:35 aleric Exp $

Field Summary
static java.lang.String IDENTIFIER
           
 
Method Summary
 com.flexstor.common.data.ejb.disguise.bucket.DisguiseBucketData getDataObject(com.flexstor.common.keys.ejb.DisguiseBucketKey key)
          This will get the Data Object based upon key.
 com.flexstor.common.data.ejb.disguise.bucket.DisguiseBucketData getDataObject(int id)
          This will get A DisguiseBucket Data object based upon an Identifier.
 com.flexstor.common.keys.ejb.DisguiseBucketKey insert(com.flexstor.common.data.ejb.disguise.bucket.DisguiseBucketData fieldDat)
          Insert a new DisguiseBucket column in the DisguiseBucket table.
 java.util.Vector queryDataObjects(java.lang.String label)
          This will get A list of DisguiseBucketData objects based on Label.
 void remove(com.flexstor.common.keys.ejb.DisguiseBucketKey key)
          Remove a DisguiseBucket From database Based upon key.
 void update(com.flexstor.common.data.ejb.disguise.bucket.DisguiseBucketData fieldDat)
          This will update a DisguiseBucket row.
 
Methods inherited from interface com.flexstor.ejb.EjbObject
keepAlive
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Field Detail

IDENTIFIER

public static final java.lang.String IDENTIFIER
See Also:
Constant Field Values
Method Detail

getDataObject

public com.flexstor.common.data.ejb.disguise.bucket.DisguiseBucketData getDataObject(int id)
                                                                              throws com.flexstor.common.exceptions.ejb.EjbException,
                                                                                     java.rmi.RemoteException,
                                                                                     com.flexstor.common.exceptions.ejb.NotFoundException
This will get A DisguiseBucket Data object based upon an Identifier.

Since:
FlexDB 3.0

queryDataObjects

public java.util.Vector queryDataObjects(java.lang.String label)
                                  throws com.flexstor.common.exceptions.ejb.EjbException,
                                         java.rmi.RemoteException,
                                         com.flexstor.common.exceptions.ejb.NotFoundException
This will get A list of DisguiseBucketData objects based on Label. This will return a list of close matches. The string should be a partial pattern and then a query will be performed.

Example: queryDataObjects( "Label 1%" );


Will return all names which begin with the pattern.

Example: queryDataObjects( "%Label%" );


Will return all names which contains the pattern.

Since:
FlexDB 3.0

getDataObject

public com.flexstor.common.data.ejb.disguise.bucket.DisguiseBucketData getDataObject(com.flexstor.common.keys.ejb.DisguiseBucketKey key)
                                                                              throws com.flexstor.common.exceptions.ejb.EjbException,
                                                                                     java.rmi.RemoteException,
                                                                                     com.flexstor.common.exceptions.ejb.NotFoundException
This will get the Data Object based upon key.

Since:
FlexDB 3.0

update

public void update(com.flexstor.common.data.ejb.disguise.bucket.DisguiseBucketData fieldDat)
            throws com.flexstor.common.exceptions.ejb.EjbException,
                   java.rmi.RemoteException
This will update a DisguiseBucket row. There MUST contain a Database key! If key is null in the dataobject then a RemoteException is thrown!

Also the id needs to be set to the valid id or id will become null.

Since:
FlexDB 3.0

insert

public com.flexstor.common.keys.ejb.DisguiseBucketKey insert(com.flexstor.common.data.ejb.disguise.bucket.DisguiseBucketData fieldDat)
                                                      throws com.flexstor.common.exceptions.ejb.EjbException,
                                                             java.rmi.RemoteException
Insert a new DisguiseBucket column in the DisguiseBucket table. This will insert a new field and return a DisguiseBucket key.


remove

public void remove(com.flexstor.common.keys.ejb.DisguiseBucketKey key)
            throws com.flexstor.common.exceptions.ejb.EjbException,
                   java.rmi.RemoteException
Remove a DisguiseBucket From database Based upon key. Throws exception if error removing row.