org.bibalex.daf.entities
Class Owner

java.lang.Object
  extended by org.bibalex.daf.entities.CollectionEntities
      extended by org.bibalex.daf.entities.Owner

public class Owner
extends CollectionEntities

Author:
Fadi.Edward

Field Summary
private  DBConnection dbConnection
           
 
Fields inherited from class org.bibalex.daf.entities.CollectionEntities
abbreviation, comment, id, name
 
Constructor Summary
Owner(int OwnID)
          Class Constructor
 
Method Summary
static OperationInfo getByID(int recID)
          select Owner
static OperationInfo loadAll()
          Load all Owners
private  boolean setFieldsFromDataTable(DataTable dataTable)
          Sets the Owner values in the super class.
 
Methods inherited from class org.bibalex.daf.entities.CollectionEntities
getAbbreviation, getComment, getID, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dbConnection

private DBConnection dbConnection
Constructor Detail

Owner

public Owner(int OwnID)
      throws java.lang.Exception
Class Constructor

Parameters:
OwnID - The ID of the Owner to construct.
Throws:
java.lang.Exception
Method Detail

loadAll

public static OperationInfo loadAll()
Load all Owners

Returns:
OperationInfo (bool, DataTable)

getByID

public static OperationInfo getByID(int recID)
select Owner

Parameters:
recID - is the record to be selected
Returns:
OperationInfo (bool, DataTable) for the selected record

setFieldsFromDataTable

private boolean setFieldsFromDataTable(DataTable dataTable)
Sets the Owner values in the super class.

Parameters:
operationInfo - The OperationInfo with the values to Set.
Returns:
true if the set was succesfull, false otherwise.