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

Quick Search    Search Deep

app.data
Class AbstractDataOrder  view AbstractDataOrder download AbstractDataOrder.java

java.lang.Object
  extended byapp.data.AbstractDataOrder
All Implemented Interfaces:
DataOrderModel

public abstract class AbstractDataOrder
extends java.lang.Object
implements DataOrderModel

Título: Gestión de pedidos Descripcion: Copyright: Copyright (c) 2001 Empresa:

Version:
1.0

Nested Class Summary
protected  class AbstractDataOrder.OrderItem
           
 
Field Summary
protected  java.util.Vector orderItems
          Vector que mantiene las condiciones de filtro
protected  java.lang.String orderSQLSyntaxAsc
           
protected  java.lang.String orderSQLSyntaxDesc
           
protected  java.lang.String orderSyntaxAsc
           
protected  java.lang.String orderSyntaxDesc
           
 
Constructor Summary
AbstractDataOrder()
           
 
Method Summary
 int addOrderField(DataField dataField, boolean ascending)
          Devuele el indice del campo añadido o -1 si no se insertó
 void clear()
           
abstract  java.lang.Object clone()
          This method may be called to create a new copy of the Object.
abstract  DataField[] getDataFields()
           
 int getNumberOfField()
           
 java.lang.String getOrderFieldSQLSyntax(int index)
           
 java.lang.String getOrderFieldSyntax(int index)
           
 java.lang.String[] getOrderSQLSyntax()
           
 java.lang.String[] getOrderSyntax()
           
 boolean isEmpty()
           
 boolean isFieldOrdered(DataField df)
           
 DataField removeOrderField(int index)
           
 boolean shiftDown(int index)
           
 boolean shiftUp(int index)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

orderItems

protected java.util.Vector orderItems
Vector que mantiene las condiciones de filtro


orderSyntaxAsc

protected java.lang.String orderSyntaxAsc

orderSyntaxDesc

protected java.lang.String orderSyntaxDesc

orderSQLSyntaxAsc

protected java.lang.String orderSQLSyntaxAsc

orderSQLSyntaxDesc

protected java.lang.String orderSQLSyntaxDesc
Constructor Detail

AbstractDataOrder

public AbstractDataOrder()
Method Detail

getDataFields

public abstract DataField[] getDataFields()
Specified by:
getDataFields in interface DataOrderModel

addOrderField

public int addOrderField(DataField dataField,
                         boolean ascending)
Devuele el indice del campo añadido o -1 si no se insertó

Specified by:
addOrderField in interface DataOrderModel

removeOrderField

public DataField removeOrderField(int index)
Specified by:
removeOrderField in interface DataOrderModel

shiftUp

public boolean shiftUp(int index)
Specified by:
shiftUp in interface DataOrderModel

shiftDown

public boolean shiftDown(int index)
Specified by:
shiftDown in interface DataOrderModel

getNumberOfField

public int getNumberOfField()
Specified by:
getNumberOfField in interface DataOrderModel

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface DataOrderModel

isFieldOrdered

public boolean isFieldOrdered(DataField df)
Specified by:
isFieldOrdered in interface DataOrderModel

getOrderSyntax

public java.lang.String[] getOrderSyntax()
Specified by:
getOrderSyntax in interface DataOrderModel

getOrderFieldSyntax

public java.lang.String getOrderFieldSyntax(int index)
Specified by:
getOrderFieldSyntax in interface DataOrderModel

getOrderSQLSyntax

public java.lang.String[] getOrderSQLSyntax()
Specified by:
getOrderSQLSyntax in interface DataOrderModel

getOrderFieldSQLSyntax

public java.lang.String getOrderFieldSQLSyntax(int index)
Specified by:
getOrderFieldSQLSyntax in interface DataOrderModel

clear

public void clear()
Specified by:
clear in interface DataOrderModel

clone

public abstract java.lang.Object clone()
Description copied from class: java.lang.Object
This method may be called to create a new copy of the Object. The typical behavior is as follows:
  • o == o.clone() is false
  • o.getClass() == o.clone().getClass() is true
  • o.equals(o) is true

However, these are not strict requirements, and may be violated if necessary. Of the three requirements, the last is the most commonly violated, particularly if the subclass does not override Object.equals(Object)>Object.equals(Object) 55 .

If the Object you call clone() on does not implement java.lang.Cloneable (which is a placeholder interface), then a CloneNotSupportedException is thrown. Notice that Object does not implement Cloneable; this method exists as a convenience for subclasses that do.

Object's implementation of clone allocates space for the new Object using the correct class, without calling any constructors, and then fills in all of the new field values with the old field values. Thus, it is a shallow copy. However, subclasses are permitted to make a deep copy.

All array types implement Cloneable, and override this method as follows (it should never fail):

 public Object clone()
 {
   try
     {
       super.clone();
     }
   catch (CloneNotSupportedException e)
     {
       throw new InternalError(e.getMessage());
     }
 }
 

Specified by:
clone in interface DataOrderModel