org.apache.oozie.util.db
Interface Schema.Column

All Known Implementing Classes:
OozieSchema.OozieColumn
Enclosing class:
Schema

public static interface Schema.Column

Interface or table columns


Method Summary
 String asLabel()
          Alias to be used by the select statement for this column
 String columnName()
          Name of the column
 int getLength()
          Returns the length of the column
 Class<?> getType()
          Returns the datatype of the column
 boolean isPrimaryKey()
          Returns if the field is a primary key or not
 Schema.Table table()
          Table to which the column belongs
 

Method Detail

table

Schema.Table table()
Table to which the column belongs

Returns:
table name

asLabel

String asLabel()
Alias to be used by the select statement for this column

Returns:
alias for column

columnName

String columnName()
Name of the column

Returns:
column name

getType

Class<?> getType()
Returns the datatype of the column

Returns:
column type

getLength

int getLength()
Returns the length of the column

Returns:

isPrimaryKey

boolean isPrimaryKey()
Returns if the field is a primary key or not

Returns:
true if field is a primary key


Copyright © 2012 Apache Software Foundation. All Rights Reserved.