www.element4solution.com

e4s.db.systabledef
Class T_E4S_COMPANY_Vec

java.lang.Object
  extended by e4s.util.E4Object
      extended by e4s.db.systabledef.T_E4S_COMPANY_Vec
All Implemented Interfaces:
E4ClientObject_Intf, E4SessionObject_Intf

public class T_E4S_COMPANY_Vec
extends E4Object
implements E4ClientObject_Intf, E4SessionObject_Intf

Vector to hold access objects for T_E4S_COMPANY created: 20041222 105625 modified: 20071108 105117 Hold Information about companies, users are related to companies.

See Also:
T_E4S_COMPANY_Obj, T_E4S_COMPANY_Sel, T_E4S_COMPANY_Mod

Field Summary
 
Fields inherited from class e4s.util.E4Object
CRLF, E4S_CORE_SYSTEM_LANGUAGE, NBSP, NULLSTR, URL_ENCODING_CHARSET
 
Constructor Summary
protected T_E4S_COMPANY_Vec()
           
  T_E4S_COMPANY_Vec(E4ApplObj_Intf applobj)
          Create an instance, reading all elements of database table T_E4S_COMPANY.
  T_E4S_COMPANY_Vec(E4DBConnection_Intf con, E4ApplObj_Intf applobj)
          Create an instance, reading all elements of database table T_E4S_COMPANY.
  T_E4S_COMPANY_Vec(T_E4S_COMPANY_Obj[] T_E4S_COMPANY)
          Create an instance built by all elements in the array.
  T_E4S_COMPANY_Vec(T_E4S_COMPANY_Sel T_E4S_COMPANY)
          Create an instance, reading all elements of database table T_E4S_COMPANY.
  T_E4S_COMPANY_Vec(T_E4S_COMPANY_Sel T_E4S_COMPANY, boolean readfreefields)
          Create an instance, reading all elements of database table T_E4S_COMPANY.
 
Method Summary
 void addElement(T_E4S_COMPANY_Obj T_E4S_COMPANY)
          Add an element to the vector.
 void addElements(T_E4S_COMPANY_Vec vT_E4S_COMPANY)
          Add all elements to the vector.
 T_E4S_COMPANY_Obj elementAt(int i)
          Get an element from the vector.
 void executeDelete(E4ApplObj_Intf applobj)
          Deletes all records from the database and removes them from this Vector.
 void executeDelete(E4DBConnection_Intf con, E4ApplObj_Intf applobj)
          Deletes all records from the database and removes them from this Vector.
 void executeUpdate(E4ApplObj_Intf applobj)
          Updates all records in the database.
 void executeUpdate(E4DBConnection_Intf con, E4ApplObj_Intf applobj)
          Updates all records in the database.
 T_E4S_COMPANY_Obj[] getElements()
          Get an array of elements from the vector.
 java.lang.String getObjectID()
          Get the ID of the Object.
protected  void init(T_E4S_COMPANY_Sel T_E4S_COMPANY, boolean readfreefields)
          Initialize data.
 void removeAllElements()
          Removes all elements, but do not perform an #executeDelete().
 void removeElementAt(int i)
          Remove specified element.
 int size()
          Get the number of elements in the vector.
 
Methods inherited from class e4s.util.E4Object
_getSVNVersionString, Calendar, CName, CName, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelSys, E4LabelSys, e4sCopyright, e4sVersion, encode, encode, encode, encodeHtml, encodeHtml, encodeHtml, encodeURL, encodeURL, encodeURL, finalize, getLINE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTraceMemory, HtmlEncode, HtmlEncode, HtmlEncode, isdecimal, isdigit, isnotok, isnotok, isnumeric, isok, isok, isok, isok, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingStack, mkdirs, null2nbsp, null2nbsp, null2nbsp, ok, ok, ok, ok, outPrintln, setLogFile4Trace, setTraceMemory, STACKTRACE, toDebug, toDouble, toFloat, toFloat, toString, TRACE_CALLS, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, wait
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

T_E4S_COMPANY_Vec

public T_E4S_COMPANY_Vec(T_E4S_COMPANY_Sel T_E4S_COMPANY)
                  throws E4DBException
Create an instance, reading all elements of database table T_E4S_COMPANY. Does not include freefield values.

Parameters:
T_E4S_COMPANY - if null, the vector will be empty. Otherwise this is a valid selection including optional sorting and filtering (where)
Throws:
E4DBException

T_E4S_COMPANY_Vec

public T_E4S_COMPANY_Vec(T_E4S_COMPANY_Sel T_E4S_COMPANY,
                         boolean readfreefields)
                  throws E4DBException
Create an instance, reading all elements of database table T_E4S_COMPANY.

Parameters:
T_E4S_COMPANY - if null, the vector will be empty. Otherwise this is a valid selection including optional sorting and filtering (where)
readfreefields - also include the freefields.
Throws:
E4DBException

T_E4S_COMPANY_Vec

protected T_E4S_COMPANY_Vec()

T_E4S_COMPANY_Vec

public T_E4S_COMPANY_Vec(T_E4S_COMPANY_Obj[] T_E4S_COMPANY)
                  throws E4DBException
Create an instance built by all elements in the array.

Parameters:
T_E4S_COMPANY - if null, the vector will be empty. Otherwise this is a valid selection including optional sorting and filtering (where)
Throws:
E4DBException

T_E4S_COMPANY_Vec

public T_E4S_COMPANY_Vec(E4DBConnection_Intf con,
                         E4ApplObj_Intf applobj)
                  throws E4DBException
Create an instance, reading all elements of database table T_E4S_COMPANY.

Parameters:
con - null reads no data, or a valid connection to read the data.
Throws:
E4DBException

T_E4S_COMPANY_Vec

public T_E4S_COMPANY_Vec(E4ApplObj_Intf applobj)
                  throws E4DBException
Create an instance, reading all elements of database table T_E4S_COMPANY.

Throws:
E4DBException
Method Detail

init

protected void init(T_E4S_COMPANY_Sel T_E4S_COMPANY,
                    boolean readfreefields)
             throws E4DBException
Initialize data.

Parameters:
T_E4S_COMPANY - if null, the vector will be left empty. Otherwise this is a valid selection including optional sorting and filtering (where)
readfreefields - if true, freefields will be read also (time consuming)
Throws:
E4DBException

size

public int size()
Get the number of elements in the vector.

Returns:
the size (element index goes from 0 to this value less 1).

elementAt

public T_E4S_COMPANY_Obj elementAt(int i)
Get an element from the vector.

Parameters:
i - the position (0 .. size() less 1).

getElements

public T_E4S_COMPANY_Obj[] getElements()
Get an array of elements from the vector.

Returns:
an array of T_E4S_COMPANY_Obj elements or null if the vector is empty.

addElement

public void addElement(T_E4S_COMPANY_Obj T_E4S_COMPANY)
Add an element to the vector.

Parameters:
T_E4S_COMPANY - the element to be added.

addElements

public void addElements(T_E4S_COMPANY_Vec vT_E4S_COMPANY)
Add all elements to the vector.

Parameters:
vT_E4S_COMPANY - a vector with the elements to be added.

removeAllElements

public void removeAllElements()
Removes all elements, but do not perform an #executeDelete().


removeElementAt

public void removeElementAt(int i)
Remove specified element.


getObjectID

public java.lang.String getObjectID()
Get the ID of the Object.

Specified by:
getObjectID in interface E4ClientObject_Intf
Specified by:
getObjectID in interface E4SessionObject_Intf
See Also:
E4ClientObject_Intf, E4SessionObject_Intf

executeDelete

public void executeDelete(E4ApplObj_Intf applobj)
                   throws E4DBException
Deletes all records from the database and removes them from this Vector.

Throws:
E4DBException
See Also:
T_E4S_COMPANY_Obj.executeDelete(e4s.application.E4ApplObj_Intf), executeDelete(e4s.db.E4DBConnection_Intf,e4s.application.E4ApplObj_Intf)

executeDelete

public void executeDelete(E4DBConnection_Intf con,
                          E4ApplObj_Intf applobj)
                   throws E4DBException
Deletes all records from the database and removes them from this Vector.

Throws:
E4DBException
See Also:
T_E4S_COMPANY_Obj.executeDelete(e4s.db.E4DBConnection_Intf,e4s.application.E4ApplObj_Intf)

executeUpdate

public void executeUpdate(E4ApplObj_Intf applobj)
                   throws E4DBException
Updates all records in the database.

Throws:
E4DBException
See Also:
T_E4S_COMPANY_Obj.executeUpdate(e4s.application.E4ApplObj_Intf), executeUpdate(e4s.db.E4DBConnection_Intf,e4s.application.E4ApplObj_Intf)

executeUpdate

public void executeUpdate(E4DBConnection_Intf con,
                          E4ApplObj_Intf applobj)
                   throws E4DBException
Updates all records in the database.

Throws:
E4DBException
See Also:
T_E4S_COMPANY_Obj.executeUpdate(e4s.db.E4DBConnection_Intf,e4s.application.E4ApplObj_Intf)

www.element4solution.com