se.sics.isl.db
Class DBField

java.lang.Object
  extended by se.sics.isl.db.DBField
Direct Known Subclasses:
FileDBField, SQLDBField

public abstract class DBField
extends java.lang.Object


Field Summary
static int AUTOINCREMENT
           
static int BYTE
           
protected  java.lang.Object defaultValue
           
static int DOUBLE
           
protected  int flags
           
static int INDEX
           
static int INTEGER
           
static int LONG
           
static int MAY_BE_NULL
           
protected  java.lang.String name
           
static int PRIMARY
           
protected  int size
           
static int STRING
           
static int TIMESTAMP
           
protected  int type
           
static int UNIQUE
           
 
Constructor Summary
protected DBField(java.lang.String name, int type, int size, int flags, java.lang.Object defaultValue)
           
 
Method Summary
 java.lang.Object getDefaultValue()
           
 int getFlags()
           
 java.lang.String getName()
           
 int getSize()
           
 int getType()
           
static int indexOf(DBField[] fields, int start, int end, java.lang.String name)
           
 boolean isUnique()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INTEGER

public static final int INTEGER
See Also:
Constant Field Values

LONG

public static final int LONG
See Also:
Constant Field Values

TIMESTAMP

public static final int TIMESTAMP
See Also:
Constant Field Values

DOUBLE

public static final int DOUBLE
See Also:
Constant Field Values

STRING

public static final int STRING
See Also:
Constant Field Values

BYTE

public static final int BYTE
See Also:
Constant Field Values

UNIQUE

public static final int UNIQUE
See Also:
Constant Field Values

AUTOINCREMENT

public static final int AUTOINCREMENT
See Also:
Constant Field Values

INDEX

public static final int INDEX
See Also:
Constant Field Values

MAY_BE_NULL

public static final int MAY_BE_NULL
See Also:
Constant Field Values

PRIMARY

public static final int PRIMARY
See Also:
Constant Field Values

name

protected final java.lang.String name

type

protected final int type

size

protected final int size

flags

protected final int flags

defaultValue

protected final java.lang.Object defaultValue
Constructor Detail

DBField

protected DBField(java.lang.String name,
                  int type,
                  int size,
                  int flags,
                  java.lang.Object defaultValue)
Method Detail

getName

public java.lang.String getName()

getType

public int getType()

getSize

public int getSize()

getFlags

public int getFlags()

getDefaultValue

public java.lang.Object getDefaultValue()

isUnique

public boolean isUnique()

indexOf

public static int indexOf(DBField[] fields,
                          int start,
                          int end,
                          java.lang.String name)


Copyright © 2007-2009 Association for Trading Agent Research. All Rights Reserved.