fr.cnes.sitools.datasource.jdbc.model
Class Attribute

java.lang.Object
  extended by fr.cnes.sitools.datasource.jdbc.model.Attribute

public final class Attribute
extends java.lang.Object

Class for definition of a table attribute

Author:
jp.boignard (AKKA Technologies)

Constructor Summary
Attribute()
          Default constructor
Attribute(java.lang.String name, java.lang.String type, int size)
          Constructor (full)
Attribute(java.lang.String name, java.lang.String type, int size, short javaSqlType)
          Constructor (full)
 
Method Summary
 short getJavaSqlType()
          Gets the javaSqlType value
 java.lang.String getName()
          Gets the name value
 int getSize()
          Gets the size value
 java.lang.String getType()
          Gets the type value
 void setJavaSqlType(short javaSqlType)
          Sets the value of javaSqlType
 void setName(java.lang.String name)
          Sets the value of name
 void setSize(int size)
          Sets the value of size
 void setType(java.lang.String type)
          Sets the value of type
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Attribute

public Attribute(java.lang.String name,
                 java.lang.String type,
                 int size)
Constructor (full)

Parameters:
name - name
type - type
size - size

Attribute

public Attribute(java.lang.String name,
                 java.lang.String type,
                 int size,
                 short javaSqlType)
Constructor (full)

Parameters:
name - name
type - type
size - size
javaSqlType - javaSqlType

Attribute

public Attribute()
Default constructor

Method Detail

getName

public java.lang.String getName()
Gets the name value

Returns:
the name

setName

public void setName(java.lang.String name)
Sets the value of name

Parameters:
name - the name to set

getType

public java.lang.String getType()
Gets the type value

Returns:
the type

setType

public void setType(java.lang.String type)
Sets the value of type

Parameters:
type - the type to set

getSize

public int getSize()
Gets the size value

Returns:
the size

setSize

public void setSize(int size)
Sets the value of size

Parameters:
size - the size to set

setJavaSqlType

public void setJavaSqlType(short javaSqlType)
Sets the value of javaSqlType

Parameters:
javaSqlType - the javaSqlType to set

getJavaSqlType

public short getJavaSqlType()
Gets the javaSqlType value

Returns:
the javaSqlType


Copyright © 2010-2013 CNES. All Rights Reserved.